Expand my Community achievements bar.

SOLVED

How to get the current workflow id?

Avatar

Level 1

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!

1 Accepted Solution

Avatar

Correct answer by
Level 3

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.

 

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

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.

 

 

Avatar

Level 1

Thank you so much!!!

 

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

 

Abrazos!

Maxi