Event and notification is not triggering from the scheduled job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 06:02 AM
Hello All,
I am facing issue with the scheduled job which is not triggering the Event and notification is not sending. The same script is Working fine from the Background Script. I don't know if it is any setting or not but 'gs.log' is also not printing from the scheduled job. I also tried making Notification, scheduled job, Event, Script include in same scoped application but it is still not working. Note: before making the script include also tried with direct logic written in Scheduled job.
Any suggestion would be great help.
Scheduled Job:
Script Include:
Event:
Notification:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 04:35 AM
Yes, Understand this point while testing simple logic of incident desc. change in same script include.
Umm I was trying to execute it by "Execute Now" Button for testing but yes this job working fine for simple logic of changing incident description field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 04:43 AM
Also one problem I found that gs.info(); or any logs are not working in this instance(only for scheduled job) don't know if it's configuration or not. but it is working when I checked in my PDI.
so I checked by commenting all the logs also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 04:22 AM
Hi Ram,
What is the Application Scope of your Script Include?
If your Schedule Job and Script Include are in different scope then try:
//This will be used when the logic is in initialize() function
new name_of_scope.AppointmentBookingReminder_1_Day();
Please mark my answer as correct if this solves your issues!
If it helped you in any way then please mark helpful!
Thanks and regards,
Kartik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 04:39 AM
Yes, It's in the same scope.
Not working above changes also.