- 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-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-20-2025 10:21 PM
@Ankur Bawiskar
Then i should have some flag on the table rtg , correct me if im wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 10:26 PM
Not required.
You can always compare today's date and the creation date.
If on 14th day it's still in progress, send reminder
If again on 30th day it's in progress, send reminder again.
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 11:15 PM
@Ankur Bawiskar
thanks , ill try this approach
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 12:32 AM
I believe I have answered your original and subsequent question.
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