Flow Designer: Wait for at least one catalog task to close

Community Alums
Not applicable

Within Flow Designer, I am creating dynamic catalog tasks using the Do in Parallel..For EAch structure which is working great.

 

Now, I need to wait until 1 of the tasks is set to Closed.  How can I do this?

 

I thought I could do the following but it isn't working;

1) Look up catalog task records where Request Item = <RITM of trigger> AND Active = True

2)  Do the following in parallel

3)  For each record in step 1

3a)  Wait for condition State = Closed Complete or Closed Skipped

3b)  If State = Closed Complete

3b1)  Update the State to Closed Skipped for all active catalog tasks for the RITM

 

The problem is the For each is waiting on the first record; not continuing to the other records.

 

Thoughts?

 

3 REPLIES 3

DrewW
Mega Sage
Mega Sage

This is one of the reasons I do not use flows for catalog items, but I digress.

 

One option would be to have the flow wait for the requested item to have a variable set to 1 or true or continue or whatever.  Then add a BR to the sc_task table that updates the var on the requested item when the first catalog task closes.

 

 

Community Alums
Not applicable

Hi DrewW,

 

I agree with your dislike for Flows :-).  

 

I'll give this a try and let you know.

 

Thanks,

Community Alums
Not applicable

Here is the current version of the Flow

MichaelColetti_0-1690896014865.png