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-28-2022 06:36 AM
First things first,
Your scheduled job is inactive, can please tell why?
&&
Everything is written in initialize function?
I would suggest writing a different function in the script include, and there add your code.
Also modify the script include call from scheduled job as:
new script_include_name().functionName();
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 03:29 AM
Hi Aman Thanks for the Reply.
I have tried it using function but it is still not triggering the notification. I also checked simple logic of changing one incident description and it working from same function but 'event' is not triggering and same code I checked with Background script and again it is working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 03:42 AM
Ok, few more things to check.
1. Please confirm if you scheduled job is active
2. Your scheduled job, script include, event all in same scope
3. Did you check event logs?
4. Are you getting script logs?
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 04:30 AM
yes Aman,
1. job is active. was testing some stuff while taking screenshot so it capture inactive.
2.Yes, all in same scope
3. No not from the job but getting it from background script
4. Umm that was the another issue I am facing, I am not getting any log for any job. But in PDI I found gs.info working fine but not with client instance