I have a workflow that is called in Forms BP I am passing the workflow a list and validating that the Barcode in each index is in our system. If one of these barcodes is not in our system I want to use "Set business Process Variables" to change the value in that index to "Not in System" In "Set business Process Variables" under "Starting Variable Values" there does not seem like a good way to iterate through the list. It looks like I can only reference the whole list. Who do I iterate through this list to assign a new value for the current value?
Question
Question
Looping Through A Collection List and Assigning values in workfow
asked on July 19, 2024
0
0
Answer
SELECTED ANSWER
replied on July 19, 2024
•
Show version history
Hello,
Set Business Process Variables should only be called once per workflow instance. Additionally, you cannot change collection values individually, you must replace the entire set.
To update values in a collection, you could create a multivalue token for each variable you want to update; this is where you would populate the new set.
In your loop, Append values to your multivalue token (i.e., use the current value or the replacement value) so you end up with an updated list that contains all of the values.
Finally, in the last step use Set Business Process variables to set the target variable equal to your multivalue token.
4
0
Replies
You are not allowed to reply in this post.
You are not allowed to follow up in this post.