You are viewing limited content. For full access, please sign in.

Question

Question

how to view variable data in workflow

asked on March 29, 2017

Is there a way to view the retrieve business process variable data of a workflow when is completes?

1 0

Replies

replied on March 29, 2017 Show version history

Joel,

 

I always add a 'Track Tokens' activity to the very end of each workflow I do...that way you get all the tokens in the 'Tokens' tab after a workflow instance is finished.  Run a search for that workflow, click the instance you want, and choose the 'Tokens' tab from the menu:

Even the variables from forms will be here:

 

1 0
replied on October 3, 2022

This was super helpful even in 2022! I was getting annoyed of only being able to see the Token tabs when a workflow instance would get an error. Being able to see tokens during non error runs is just as important!

0 0
replied on March 29, 2017

Thank you this is very good information.  I was able to see the values in the workflow tokens.  

Now here is the issue, the second column below is the values in the token, I am feeding this token into an email activity in the workflow and I only get the first value in the token; i.e FT.  How can I get all the values included?

 

0 0
replied on March 29, 2017 Show version history

Joel,

You would have to split the token back apart.  First use a 'For Each Row' to iterate through the values, then in your email choose the token with the 'Tokens' option but then click 'Apply Function' checkbox, click the 'Select a function' link and select the 'Split' option and move it over, like this:

I just use a space to split them, but you can use a comma or whatever is between them...to use a space just click in the field next to 'Split on' at the bottom of the box and type a space, then click 'OK'.  Click the box next to 'Apply Index' as well, choose the 'All values separated by' radio button and type a comma or space in the field next to it.  Click 'Ok' to close the box.  This should now give you all the values of your token in your email. The model looks something like this:

 

 

Note:  If your token was called compTimes for instance, it would look like this in the email text box once you're done:  %(compTimes#@Split( )@##[ ]#)

0 0
replied on March 29, 2017

This is probably not the way to go for just adding all values to an email. Multi-value tokens default to the first value when used in single-value editboxes like Laserfiche fields, entry names or the body of an email. If you want to use all values, you have to "flatten" them by specifying a delimiter. Once you insert the token in the email, right-click it and choose Token Editor from the context menu. Then specify the delimiter of your choice:

0 0
replied on March 29, 2017

Miruna,

This has gotten me very close to what I need.  However, the token is separating each now but there is a space after the comma that I need removed.

I tried to use the apply function to remove the space but that did not seem to work.  Here is the screen shot.

1 0
replied on March 29, 2017

Just type a comma in instead. The built-in comma separator is comma and a space.

The options in that dialog are applied in the order listed so the function runs before the delimiters.

1 0
replied on March 29, 2017

Outstanding!!!  Thank you so much.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.