Can the Name of an Event be Populated in the Triggered Workflow's Event Logs when Emitting an Event from a Connected Workflow?

This topic was automatically generated from Slack. You can find the original thread here.

When triggering a workflow by emitting an event from a connected workflow, is there a way to populate the name of the event as it appears in the triggered workflow’s event logs?

image.png

To populate the name of the event as it appears in the triggered workflow’s event logs when emitting an event from a connected workflow, you can specify a name property in the event data you emit. This name will be visible in the event logs of the triggered workflow. Here’s an example of how you can emit an event with a specific name: export default defineComponent({ async run({ steps, $ }) { $.send.emit({ name: "CustomEventName", // This is the name that will appear in the event logs data: { // Your event data here }, }); } }); In this example, replace "CustomEventName" with the desired name you want to appear in the event logs of the triggered workflow. This will help you identify the event in the logs more easily. For more details on emitting events and triggering workflows, you can refer to the Pipedream documentation on emitting events.

I actually tried that; it didn’t seem to work

With HTTP triggers, whatever you put in the path of the URL (after the /) will appear there.

I’m using $.send.emit() from a connected workflow

Do you see a downside to using HTTP triggers?

Hopefully Pipedream can one day unify all of these different interfaces… :sweat_smile:

Yep unfortunately not yet, shared with the team