How to get the current workflow id? | Community
Skip to main content
July 20, 2020
Solved

How to get the current workflow id?

  • July 20, 2020
  • 1 reply
  • 3648 views

Hi!

 

We are generating segments that have nothing to do with email/sms/push notif, and we want to save the current workflow ID to track the profiles, but we did not find a function that returns that value. Is there a way to get it?

 

We want a file that contains profileId and workflowId (to know where it came from).

 

Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by anasso83525035

Hello Maximiliano,

 

You have two options:

 

You can add the ID of the workflow directly in your extract file activity as part of the output file title.

 

  • Open the extract file activity
  • Click on the pen Icon next to the output file field
  • Click on Insert personalization field
  • Choose the ID(name) field

Or You can add the workflow ID as additional data in your main query or enrichment using the expression: $(instance/@name) and add it as an output column in your extract file activity.

 

 

1 reply

anasso83525035Accepted solution
Level 3
July 20, 2020

Hello Maximiliano,

 

You have two options:

 

You can add the ID of the workflow directly in your extract file activity as part of the output file title.

 

  • Open the extract file activity
  • Click on the pen Icon next to the output file field
  • Click on Insert personalization field
  • Choose the ID(name) field

Or You can add the workflow ID as additional data in your main query or enrichment using the expression: $(instance/@name) and add it as an output column in your extract file activity.

 

 

July 22, 2020

Thank you so much!!!

 

Where did you find that?, is there a list of these instance variables?

 

Abrazos!

Maxi