Trigger a notification after 10 days of task creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:52 PM
Hello,
I have a requirement to send a notification to the user if catalog task is not completed,10 days after the catalog task is created.
How can I achieve it using business rule or workflow? Please could anyone help me with it.
Thanks in advance
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:57 PM
Hi,
You could create a Flow that runs daily, and checks for all open SCTASK which is created on 10 days ago and send a notification to the assigned to.
Only issue would be whom to send to if a task is 10 days old, and doesn't have an assigned to, who should the notification go to then?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:58 PM
Hi,
Should the follow up mail be sent always or is there any other condition like some flag which cheks after 1st notification is sent and before follow up mail to send?
Generally you send the ntoification to do some action. if that action is already done, then you don't need ot send follow up mail.
So here is how you shoudl do.
1. Create 1 event on the same table.
2. Trigger 1st mail.
in the mail script trigger this event to run after 5 days
var gdt = new GlideDateTime();
gdt.addDays(10);
gs.eventQueueScheduled("your_event_name",current, "","",gdt); //this will trigger after 10 days
3. now create a script action which listen to this event and check if the action is already done or do we need to send follow up mail? If you have to send follow up mail, then call your code which you are calling in scheduled job in this script action.
Mark the comment as a correct answer and also helpful if this has answered your question.
Regards,
Vaishnavi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 11:00 PM
Hi Trupti,
Your workflow should look something like this using branch :
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 12:58 AM
Thank you for your help!
This worked for me.