- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 07:34 PM
Hi,
I have a survey which last for 42 days and in that i want to trigger notification twice i.e. 14 day and 30th day.
how can i achieve this ?
i tried with event is fired and SJ its not working.
"Script-
attestationReminder1()
thanks,
Naidile
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 10:15 PM
This is how you can do the logic
1) run scheduled job daily and check which surveys are yet to be completed, don't give past days encoded query
2) iterate those records 1 by 1
3) compare today's date and the survey creation date
a) if it' 14 days difference then send email with some content
b) if it' 30 days difference then send email with some other content
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2025 07:04 AM
what script did you use?
you can tweak it and check difference between today and created date of survey is 14 or 30 then send email
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2025 10:40 PM
Hi @Ankur Bawiskar
I used scheduled Script for 14 days and 30 days separate with different email notification for 2 and it run daily.
I also tried to flow designer.
Here, its i have added wait for condition , so that first it will check for 14days and in 2nd wait for 30 days.
Is this approach correct or anywhere im goin wrong. i want to check this on daily basis as well.
Kindly correct me .
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2025 10:44 PM
Its triggering for both notification even when i consider created past 14days ,
Idly it should trigger for 14 days alone.
Even with 30 days its happening the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 08:22 PM
Please use scheduled job as using flow will lead to performance issue as flow will wait for those many days and if lot of surveys are there there will be more flow context waiting for those many days taking up system resources.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 10:09 PM
Hi @Ankur Bawiskar
okay okay got it, thanks
Now if at all i need to use 2 different days to trigger , how can i do it.
Its triggering for both notification even when i consider created past 14days ,
Idly it should trigger for 14 days alone.
Even with 30 days its happening the same.
Currently how its behaving is its triggering for both 14th and 30th day together in SJ