Change event source type

Hey Losanters,

In my setup, clients/users can access a dashboard where they add events using an input controls block. This block triggers a workflow that creates the event via the “Event: Create” node.

On the same dashboard, I also display a list of all events. I’d like to show the name of the user who created each event. The issue is that, since the event is created through a workflow, the event source type is recorded as flow instead of user (which is the case when events are created directly through the event UI).

image

My question is: is there a way to display the name of the logged-in user who created the event?

Thanks in advance!

You at least know the ID of the user who clicked the Virtual Button, as it will be on the payload under the relayId property. You could save that ID as an event tag to keep track of who created the event. If desired, you could convert that to an email address or first and last name by maintaining a map of user IDs to known organization members in a workflow global.

However, the event will still be marked as created by the workflow in the event list’s “Last Updated” column. This information comes from the auth token of the entity that made the request to create the event.

We do have an open feature request for a “Custom” column type in the application’s event list; having such a column would allow you to do the mapping of the event tag I mentioned above to user-identifying information - though you can still accomplish that right now in a workflow. I will add a +1 to that request for this use case.

1 Like