Reputation: 78
I am working on a logic app in azure. I have created a custom api app that receives Tracking id as input and does . Now i have 5 actions and 1 trigger in my logic app.
I am using Http Listener as my logic app trigger. Now i want to get the tracking id of a particular run and pass that same tracking id into my custom api app as input in the same run.
I Followed the below link and tried to get the tracking Id from the trigger Link to resource
I tried the following things in my logic app to get tracking id:
1) @triggers().trackingId
- didnt work
2)@trigger().trackingId
- didnt work
3)@trigger().trackingid
- didnt work
4)@triggers().trackingid
- didnt work
5)@actions('triggername')
- in this case my logic trigger stops working i.e. i cannot trigger my logic app anymore
6)@triggers()
- in this case i get the whole trigger object but do not get tracking id anywhere in the object.
what should i do to achieve what i want in this case ?
Upvotes: 1
Views: 1782
Reputation: 775
If you are just looking for unique ID for a workflow, which should accessible in an action in your logic app, use @workflow()['run']['name']
. This will return the unique runId that is generated for each run.
Upvotes: 2