Event from a scheduled job is not getting triggred

vtred
Tera Contributor

Hi,

Am trying to trigger the event from a scheduled job and from there send a notification.

but when i tried yesterday it was working, when i see not - the first step - event is not getting triggred

SCHEDULED JOB:

find_real_file.png

EVENT:

find_real_file.png

NOTIFICATION:

find_real_file.png

Can someone help - am not sure what i am actually missing?

17 REPLIES 17

sbanc
Kilo Guru

Hi

Just in case someone else is facing this issue in the future I want to give a clear solution to it, as I ran into the same problem today.

The Events get created in the event log when running the script in background, but not when executing the scheduled script job.

The problem is scoped apps.

In my case:
The triggered event is in another scope than the scheduled job was, so the event was not able to get triggered from the different scope.

There are two possible solutions to it:
Either you create a script include in the event scope which is accessible for all scopes and call that script include in your scheduled job or you move the scheduled job to the scope where the event is registered in.

Please mark this as a solution if it solved your case

Regards
Simon

Thank you @sbanc !! I ran into this today and your answer was the solution! scopes ðŸ˜…

yash_mody
Tera Contributor

Hi guys, my script include, scheduled job, events and notifications - everything is in the same scope - Human Resources: Core but still the events won't get triggered. They get triggered from background scripts but not from scheduled job!