How to get Execution flow Sysid in the flow designer action to check any existing execution for same

Rajesh139
Tera Contributor

Hi All.

 

I am triggering inbound email flow for updating attachment to Import set. I was deleting existing attachments and copying new attachment to data source. I am facing issue in one scenario where if two inbound emails triggered at same time then one attachment is missing and not loading the data.

So for this I am thinking to get flow execution sys_id in the action to check existing execution flow irrespective of this current flow.

 

Can any one help on this how to get sys id..?

1 REPLY 1

molayd
Mega Guru

Try defining a flow variable and use the below script against it.

 

return FlowscriptAPI.getcontextID(); // returns the sys_id of the flow