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

Question

Question

use collection variable to identify another collection variable

asked on June 7, 2019

Hello,

I have two Forms collections for new hire work references: the first is reference type (personal, professional) and the second is the reference email. I need a workflow that repeats through the collection count, first identifying the type, then emailing the reference with a querystring. Personal and professional references are then directed to two different forms.

Working with my vendor so far has gotten me this (below), but the conditional fails to identify the type of reference correctly every time. Therefore all iterations follow only one branch of reference type path (the first type indicated in the collection), but not both as it should, according to the conditional. Moving the Create Index Token inside the Repeat Token only throws off the index count.

Any thoughts would be greatly appreciated.

Jennifer

0 0

Answer

SELECTED ANSWER
replied on June 7, 2019

To iterate through the Forms collections, you should use a Retrieve Business Process Variables activity to obtain the collection (the collection itself, not the underlying variables), then use For Each Row to iterate through the collections.

It sounds like you actually have two variables in the same collection rather than two separate collections. Is that correct?

If so, then all you need is a For Each Row activity connected to that collection and you can look at the current iteration value of both variables/fields; since it iterates through the collection rows you'll always get the two that go together.

0 0

Replies

replied on June 11, 2019

Thank you, this is a great solution.

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

Sign in to reply to this post.