I have created an integration which is triggered via a pubsub and returns a response. I want to create a tracking mechanism for which i want to send the ExecutionId of the integration in the response. So my question is how can I access the ExecutionId of a particular run inside the flow itself .
Note : The Execution Id that am talking about is the one which appears in the logs tabs against a particular run of the integration.
1 Like
One way to get the execution id and setting is using the data mapping function. see the attached screenshot for reference. Let know if this solves
2 Likes
Hello Nitin,
you can define a variable in your flow which you can reuse in multiple steps and for populating it with the current execution id you can create a javascript task and use this below method to get the execution id and then use setParameter metjod to populate your variable.
event.getEventExecutionInfoId()
More details are here:
https://cloud.google.com/application-integration/docs/configure-javascript-task#geteventexecutioninfoid
1 Like
Thanks Pramod. I completely overlooked the inbuilt functions in DataMapping task.
Thanks Nitin 
I appreciate this solution and it works perfectly fine but somehow Pramod’s reply is more closer and one less step involved.
1 Like