Auto approve approval records after 7 days

dianeramos
Tera Contributor

I am building a workflow making use of the Approval Coordinator activity. I have 19 group approval records and I only want the task to appear after all approvals are received. There are times when groups sit on the approval request which becomes a bottle neck. I would like to have a condition that auto approves the approval request after 7 days of non activity. Is this possible? Please assist. Thank you!

find_real_file.png

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

You can create a flow in flow designer to approve it automatically after 7 days.

See this article with update set which i create for that reminder notification. At then end you can approve or reject it as per your need.

Approval Reminder for Approval Records using flow designer

 

You can modify this flow quickly and easily, not need to script.


Thanks,
Ashutosh

View solution in original post

3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

You can create a flow in flow designer to approve it automatically after 7 days.

See this article with update set which i create for that reminder notification. At then end you can approve or reject it as per your need.

Approval Reminder for Approval Records using flow designer

 

You can modify this flow quickly and easily, not need to script.


Thanks,
Ashutosh

Dhruv Gupta1
Kilo Sage
Kilo Sage

I would recommend inserting a timer activity in parallel to coordinator activity. So that which ever completes first will move forward. Or create a Schedule job to run daily.

var gr = new GlideRecord("sysapproval_approver");
gr.addQuery('state','requested');
gr.addQuery('sys_created_on','<',gs.daysAgo(7));
gr.query();
if (gr.next())
 {
gr.state = 'approved';
gr.update();



}

Chander Bhusha1
Tera Guru

Hi,

Add a timer activity parallel  to the approval coordinator. and mention the duration to 7 days.

after that add the approval action activity and select action as disregard pending approval and mark task as approved.

 

So the transition would be like this 

Begin -------Workflow ----- Approval coordinator------- Catalog task 

                                -------- Timer ---- Approval action   ----- Catalog task    

 

Mark helpful and correct if it helpsl

Thanks,

CB