"If all collected item" Flow
I have a scenario where a parent item will have multiple referenced items in another app (the number will vary). These "child" items each have a status, Complete or Incomplete.
Is there a way to update the status of the parent item when all of the referenced items are marked Complete?
Thanks in advance!
-
I would do this using a 'For Each' loop and a check variable.
For example, start with variable Check = 0
then begin the for each loop and say if the status of the child item collected is equal to Incomplete then set the variable Check = 1
After completing the for each loop, you can use another sanity check and say IF the Check variable is still = 0 then proceed with updating the status of the parent item.
However if any of the collected items in the loop have a status of Incomplete, the variable should now register as = 1 and thus the parent status update would not occur.
I'm sure there are other ways to accomplish this...but this is the first idea that came to mind when I saw the question. Hope it helps.
Please sign in to leave a comment.
Comments
1 comment