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?
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.