Auto-close RITMs not approved within 30 days

Tracey Wilmot
Tera Contributor

Currently, we are running a report on a daily basis to check for unapproved requests and manually marking them as Closed Incomplete if the request is not approved within 30 days.  We are looking for a way to automate this.

I think I need to setup a Scheduled Job but I'm not sure what the content of the script should be.  Any help would be greatly appreciated.

Many thanks
Tracey

1 ACCEPTED SOLUTION

Yes, you can trigger an email here. Refer to screenshot below from the above code which I have shared:

find_real_file.png

So just after gs.log line you can use below syntax to trigger your notification:

gs.eventQueue('Event Name',children,recipeint1, recipient2);

//Replace recipeint1 & recipeint2 should be the user object to whom you want to send the email to. 
Also Event Name need to be configured by navigating to "Registry" module and then use it here.

 

Then go to Notification module and use Trigger as Event is fired and select the same event name and make sure to check below parameter as True in Whom to receive tab:

Parm1

Parm2

Send to Event Creator

 

Then finally define the Notification content.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

18 REPLIES 18

Thank you @shloke04 this worked perfectly and is just what I needed!!!

The only thing now is I wonder if it is possible to send a notification to the user that there request has been cancelled due to approval not received in a timely manner or maybe something in the Activity Log, should the user contact the Service Desk?

find_real_file.png

Yes, you can trigger an email here. Refer to screenshot below from the above code which I have shared:

find_real_file.png

So just after gs.log line you can use below syntax to trigger your notification:

gs.eventQueue('Event Name',children,recipeint1, recipient2);

//Replace recipeint1 & recipeint2 should be the user object to whom you want to send the email to. 
Also Event Name need to be configured by navigating to "Registry" module and then use it here.

 

Then go to Notification module and use Trigger as Event is fired and select the same event name and make sure to check below parameter as True in Whom to receive tab:

Parm1

Parm2

Send to Event Creator

 

Then finally define the Notification content.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Thank you so much for all of your help!  This works perfectly 🙂

Happy Christmas!

Tracey

Happy Christmas!!

 

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke