We have a workflow which contains two collection variables,
within each collection variable it holds a listing of users which was retrieved
by querying a list which contained a people picker field. An example
scenario would look like the following:
With the example above, we are looking for a way to compare
these two variables, what we need to identify are two things:
Collection Variable 1
Collection Variable 2
How could we accomplish, is there an action which could help
us achieve this?
Solved! Go to Solution.
In two steps.
Step 1, loop on the Collection Variable 2. For each value, use the Exists operation in Collection Variable 1.
Each time it returns false, store the value in a new collection variable with the Add operation of a Collection Variable. You can maybe use Remove by value if Exists return true but I do not know if the loop on the Collection Variable is affected or not.
Step 2, same case, just exchange the Collection Variable name.
Hope it helps,
You can find all operations on Collection Variable here.
But you cannot compare Collection Variables between them.
That is why you need two steps.