For each loop to check group approval in flow designer

MS17
Tera Contributor

Hi All,

 

I have a requirement to review the group annually, if group has no manager or manager is inactive, we need to trigger approval to "admin" group, if anyone from this group is rejected, then deactivate that group, if approved keep it active, if no action taken, then wait for 5 days and trigger reminder notification, still no response, then the group should be deactivated.

 

I created a scheduled flow to trigger every year,  I created group approval record for each group which has no manager or manager is inactive, now i need to check if anyone from the group is approved/rejected for each group approval record, can anyone help me                        

 
 
 
 

1.png2.png

1 ACCEPTED SOLUTION

Hello @MS17 ,

Create a new flow variable

Subflow add 01.png

 

Add Do the Following in Parallel as 3rd step, then followed by Ask For approval and then if Statements. Inside If, set the flow variables...

Subflow add 02.png

and then set the value of same flow variable in case approved within due date

Subflow add .png

 Then in parallel Branch, add wait for duration and then IF action followed by Fire Event as per your case.

Subflow add 03.png

Hope this helps!

View solution in original post

16 REPLIES 16

Dinesh Chilaka
Kilo Sage

Hi @MS17 ,

Instead of using create record action to create group approval records(trigger approvals) ,use the OOB action ask for approval .Select the record as the group record which will be find as manager is empty or manager is inactive above and select the Rules as Approves or Rejects and select the group as Admins Group

Screenshot 2026-03-17 at 6.17.08 PM.png

Then Immediately use the if-condition to check whether the approval is rejected or approved and continue with your logic

If my response helped, mark it as helpful and accept the solution

 

hi @Dinesh Chilaka 

I tried Ask for Approval also, but inside for each, once group approval triggered, it is waiting for approved/rejected for the group, then only the approval triggering for next group, but i want to trigger group approval at a time for all the groups matched with the condition

 

Thanks.

AlfrinAJ
Tera Guru

Hello @MS17 , It is achievable. You are triggering approval to group record itself? Or is the approvals are triggered to some RITM or Task or incident? Where the admins will approve/reject the request?

Hello @MS17 

Assuming that group approval is triggered at assignment group level itself, To achieve this you need to have a subflow and few flow variables.

 

Flow Variables:

Flow Variables.png

Main Flow:

Main Flow 01.png

 Ignore the highlighted Condition

Main Flow 02.png

Main Flow 03.png

Main Flow 04.png

Main Flow 05.png

Main Flow 06.png

  

Subflow:

Subflow 01.png

Subflow 02.png

 Add the wait for 5 days and reminder email stuffs in the subflow.

Refer the attached images if you want an overview.

 

Hope this will help you.

MS17
Tera Contributor

Hi @AlfrinAJ ,

Thanks for the reply, Will try this and let you know.

Thanks.