Ask for Approval in For Each Loop

Ronn Allen Tuma
Tera Contributor

Does the Ask for Approval has a default "wait" state? I've put an Ask for Approval action in my For Each loop but it does not generate the other tasks if the first task is not approved or rejected. 

1 ACCEPTED SOLUTION

Mahendra RC
Mega Sage

Hello @Ronn Allen Tuma 

Looking at your requirement it seems that you cannot implement this requirement using a single flow. You have to split this flow into 2 flows.

- 1st flow with all the action that you have added in your current flow from action 1 to action 7. So this will create the catalog task for all the group members that will satisfy the lookup condition in action 2.

- 2nd flow to trigger based on condition something like the request_item.item is your catalog item and then you can include the Ask for approval action in flow to get the approval from group member's manager.

 

View solution in original post

4 REPLIES 4

Tony Chatfield1
Kilo Patron

Hi, perhaps you could share details of your requirement and configuration as your post does not may your question\issues clear. If sharing your code xml or plain text file is the best method.

JohnnySnow
Kilo Sage

Hi Ronn,

 

If the tasks are not dependent on the approval results, then you can probably use the parallel tasks under subflow logic (flow designer). Also, if you can elaborate on the requirement that would help,

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.

Ronn Allen Tuma
Tera Contributor

Hi Everyone,

 

RonnAllenTuma_0-1668407671491.png

An RITM is assigned to a group that satisfies the Look Up Group Records in action number 2. Then the members of the group are extracted. This flow is for reviewing access. Each member of a group will have an SCTASK for them and will be assigned to their managers. The managers will approve or reject whether the user still needs access. My concern is that when I put the Ask for approval action in action number 8 it will only show the 1st SCTASK and not all the sctask. If manager rejects or approves the 1st sctask then the 2nd sctask will show. I need my flow to show all sctasks. When I look at the flow statistics the state of the ask for approval is in "waiting" state. Is there anyway to skip the waiting state?


RonnAllenTuma_1-1668408264568.png

 

RonnAllenTuma_2-1668408302685.png

 

Mahendra RC
Mega Sage

Hello @Ronn Allen Tuma 

Looking at your requirement it seems that you cannot implement this requirement using a single flow. You have to split this flow into 2 flows.

- 1st flow with all the action that you have added in your current flow from action 1 to action 7. So this will create the catalog task for all the group members that will satisfy the lookup condition in action 2.

- 2nd flow to trigger based on condition something like the request_item.item is your catalog item and then you can include the Ask for approval action in flow to get the approval from group member's manager.