Hi,
I have workflow that assigns values to tokens from input values sent from a business process. The tokens are multivalued. Examples are day and date reviewed. I also have a blank token created.
I have a For Each Row activity in the workflow. Within the activity I have tokens that get created by applying index The Value at index: For Each Row - Iternation.
I also append them to the blank token to help me understand.
reference this for outcome snippet below in yellow
I then have a run rule activity that updates a lookup database.
What it is doing now is that lets say I have the following:
day:
02/01/2024
02/02/2024
02/03/2024
Review Date:
02/01/2024
It will update the review date to this:
02/01/2024
02/01/2024
02/01/2024
So my thoughts are to have a conditional sequence that compares the iteration of day and review date and make sure they are not empty. This is to stop it from updating empty values in review date with the latest value found, or in this case, only value.
I have set it up the conditional sequence inside the For Each Row to be:
This way it should be looking at day(iteration) and review date(iteration).
This is the step I am currently stuck at.
What I see it doing is selecting the latest value in a multivalued field (review date which only has 1) even though the iteration should not find anything.
As you can see, it's saying the review date (2) is 2/1/2024 when it should be blank. Same for iteration 3.
Any insight on how to get the iteration to stop pulling the latest and instead return empty?