This topic was automatically generated from Slack. You can find the original thread here.
Hello everyone, I am trying to obtain the ID of the workflow and push it to Google Sheets as an additional column. Check Screenshot 1
The reason for doing this is that I won’t have to go through the Pipedream events history every time to find and check a specific LEAD. Instead, I can simply go to the Google Sheet, retrieve the LEAD’s ID from there, and insert it into the URL, which will directly navigate me to that particular LEAD. /inspect/**2SR37mrlZIOzbXzFLYvUJuYa5nA**
But the Pipedream context ID is incorrect when it comes to Google Sheets, and I’m unable to navigate to a specific lead based on the ID I have in Google Sheets. This is because the Google Sheet ID and the ID used for inspecting the URL do not match. They are different.
That is the event ID, not the workflow ID, so the events will expire from the UI after 7 days (that’s likely what the 2nd screenshot is telling you). Depending on what you want to do, if you’re looking for the workflow ID, you can use steps.trigger.context.workflow_id
Yea, you should use context.trace_id instead of context.id. context.id is for that particular invocation, whereas trace_id will be reused if you’re suspending and resuming, and is what’s used in the URL for the Inspector and Event History.