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

Question

Question

Workflow - Is there a simple way to get a multi token index value only if it exists?

asked on November 9, 2022

By default if I specify an index for a multi-value token that is outside the range, it picks the last populated index instead. Is there a simple way to have it return nothing instead?

0 0

Replies

replied on November 9, 2022

I believe you can just use the value count function in the token editor for your multi-value token, as mentioned here. Just need to use that value in a conditional statement.

2 0
replied on November 10, 2022

Value count could return a number, for example if I had 5 values, it would return 5. I am looking to return the value at the index specified, but if the index is out of range to return blank.

0 0
replied on November 17, 2022

Right, so if value count is greater than the index, then return the value at the index. Else, return blank.

1 0
replied on November 18, 2022

I don't think this condition can be done in the token editor. How do you add conditions like this?

0 0
replied on November 18, 2022

You would use the conditional decision activity, not the token editor.

0 0
replied on November 18, 2022

Maybe this is under the assumption that I have a for each in the workflow and it is iterating through the values. There is no for each. The indexes are being referenced based on the row and column they belong in when populating a PDF.

There is no option inside a conditional to replace indexes of a multi-value token with a blank that would return as blank when referenced that I know of.

 

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

Sign in to reply to this post.