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

Question

Question

Workflow - Retrieve value at index returning the wrong value

asked on April 22, 2014

I have configured a Retrieve Field Values to retrieve the value at index 2 from a multi-valued field.

 

In order to determine if there are multiple entries I have a condition dependency on this data.

 

Even when there is not multiple entries the value is still populated (with the value at index 1).

 

So my conditional is inaccurate.

 

 

0 0

Answer

SELECTED ANSWER
replied on April 22, 2014

You'll want to create a new token using Assign Token Values and set it to the Value Count of your retrieved token:

 

0 0

Replies

replied on April 22, 2014

If you overshoot the index's max value it gives you the last value in the list (in this case it would be your first value). The best way to do your conditional would be to put a token function on it to determine the total number of values in the token.

0 0
replied on April 22, 2014

I changed the retrieval to retrieve all values and I am searching under token in the conditional. I am having trouble finding anything like that. The only way I have ever known to see if a value is empty is the using the is empty condition. Am I looking in the right place?

0 0
SELECTED ANSWER
replied on April 22, 2014

You'll want to create a new token using Assign Token Values and set it to the Value Count of your retrieved token:

 

0 0
replied on April 24, 2014

Works perfectly, learned something new as well. Thanks!

0 0
replied on April 24, 2014

You're very welcome, glad I could help.

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

Sign in to reply to this post.