Need approach to automatically close Legal requests that were updated 6 days ago

Hritik
Tera Expert

Hello Community,

 

Please find my requirement below:

All the legal requests that were last updated 6 days ago and state is "awaiting for user" should be automatically resolved by the system and then system should trigger notification to the requestor that request is resolved.

 

My approach:

So far I created a "After update" BR and wrote script to update status and trigger email from event.

 

But it's not working. As record would not be updated hence I guess this BR would not work here.

 

Could you suggest a better approach please? What's easier to handle this ? 

 

Scheduled script or job ? Or if I can update existing BR ?

 

 

thanks in advance,

Hritik.

6 REPLIES 6

Sanjeev Kumar1
Kilo Sage

Hi ,

you can implement it using two approaches

1. Create a scheduled Job that should run daily.

2. Create auto closer process same as ServiceNow created for Incident.

 

https://docs.servicenow.com/bundle/washingtondc-it-service-management/page/product/incident-manageme...

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0552820

 

Thanks,

Sanjeev Kumar

Hi @Sanjeev Kumar1 ,

 

Can i Implement this via Scheduled Flow ? 

Yes you can

SN_Learn
Kilo Patron
Kilo Patron

Hi @Hritik ,

 

You can try with Flow as below:

SN_Learn_0-1722103839323.png

 

Replace table and state accordingly:

 

*Updated relative before 6 days ago

SN_Learn_1-1722103888836.png

 

SN_Learn_2-1722103986571.png

 

 

SN_Learn_3-1722104045209.png

 

Send notification:

SN_Learn_4-1722104158789.png

 

 

Check the below to know the ways to send notification from FLOW:

3 Ways to Notify with Flow Designer 

Four Flow Notification approaches (Action script, Trigger Event, trigger notification and Send email 

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.