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

Question

Question

Extra Iteration and No Current Value in "For Each Value"

asked on August 16, 2018

I'm testing a workflow that looks at a multi-value field for Assigned person, and loops through with a "For Each Value" to grab the person's name and find the email address to send an email.

I'm running into a couple of issues. One is that in the "foreachvalue_current value" token isn't populated with anything, even though the metadata fields are filled in.

Additionally, I have two names in the multivalue field, however the tokens show that it's finding 3 iterations, and then sends out 3 emails (we have a "find email" workflow where if no name shows, it sends to a default user -- that user is getting 3 emails).

I'm also getting a "index token did not resolve to a number" error -- I tried creating a token from the field with the error, made sure it was listed as "string", and I still get the error.

0 0

Answer

SELECTED ANSWER
replied on August 17, 2018

I ended up rebuilding the workflow and it all works fine now. I'm not sure what was causing the issue, but given there were multiple problems that seemed unrelated I figured rebuilding was best. Thanks for the help!

0 0

Replies

replied on August 16, 2018

Can you put a screenshot of your workflow up so we can see what you are working with?

 

0 0
replied on August 16, 2018

0 0
replied on August 16, 2018

1) Have you tried taking it out of the Sequence?  It may sound strange but I have run into things where I have activities inside sequences or parallels but those activity results are not available to activities  outside the sequence.

2) Have you verified after running a workflow that values so up in the Retrieve Field Values activity?

3) If the Retrieve Field Values activity does show results does it show a blank result (giving the extra iteration)?

0 0
replied on August 17, 2018

I took it out of sequence and still get that 3rd iteration. I'm only referencing Assigned Name and Assigned type:

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

Sign in to reply to this post.