Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to access the Application Integration(iPaaS) Execution Id inside the flow?

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.

NitinRawat_0-1696274858735.png

 

Solved Solved
1 4 469
2 ACCEPTED SOLUTIONS

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

pramodvallanur_0-1696278385721.png

 

View solution in original post

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#geteventexecutioninf...

View solution in original post

4 REPLIES 4

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

pramodvallanur_0-1696278385721.png

 

Thanks Pramod. I completely overlooked the inbuilt functions in DataMapping task.

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#geteventexecutioninf...

Thanks Nitin 😀

I appreciate this solution and it works perfectly fine but somehow Pramod's reply is more closer and one less step involved.

Top Labels in this Space