Is it Possible to Retrieve the Workflow Execution ID Within a Workflow?

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

Can I retrieve the workflow execution ID within a workflow?

can you help?

Yes, I can help you retrieve the workflow execution ID within a workflow. You can access the execution ID using the $.execution.id variable in a code step. Here’s an example: ```
export default defineComponent({ async run({ steps, $ }) { const executionId = $.execution.id; console.log(The workflow execution ID is: ${executionId}); }, });

That’s not quite right. Can you check out these docs and see if that helps? https://pipedream.com/docs/workflows/events/#steps-trigger-context

yep this was perfect thanks