5 days before end date, fire notification to a group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 02:51 AM
Hello all,
There is a date variable "end_date" in application table. As per the requirement, I need to check the date and run a scheduled job 5 days before the end date and send notification to a group. How can this be achieved? Can someone help me with the process as this is my first time doing scheduled job and notification
Thanks,
Hema
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 02:55 AM
The best and easiest way to use the flow designed would be:
Trigger: Daily
Action: Wait for [set a condition or time]
Action: Send Notification
This simple flow will trigger daily, wait for the specified condition or time, and then send a notification. You can customize the "Wait for" action based on your specific requirements, such as waiting for a user response or a certain event to occur.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 03:10 AM
Hi @Dr Atul G- LNG
Thanks for your response, but then I have a query here. If it is wait for condition it is not a direct one, I need to fetch the date, validate and check if it is 5 days before the actual end date. How can this be achieved?
Thanks,
Hema
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 03:13 AM
In that case, first, you can get the variable by using:
Action: Get Catalog Variables
Once you have the variable, then you can add the Wait condition to pause the flow until the required conditions are met.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 04:24 AM
HI @Hemamani Prabha ,
Create schedule job which runs daily at 12 AM and trigger event to send notification
- Run: Daily
- Time: Choose when it should run (e.g., 12 AM)
Below code will be helpful to send notification 5 days before end date .
Please give a like if you find the solution helpful
