Event and notification is not triggering from the scheduled job

Ram156
Mega Expert

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:

find_real_file.png

Script Include:

find_real_file.png

Event:

find_real_file.png

Notification:

find_real_file.png

13 REPLIES 13

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.

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. 

Kartik Sethi
Tera Guru
Tera Guru

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

Yes, It's in the same scope. 

Not working above changes also.