Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

No email notification when stock runner job is running for stock rule

chercm
Mega Sage

I noticed that the script does not have anything to trigger email notification 

 

gs.include('global.ProcessStockRules');
var processStockRules = new global.ProcessStockRules();
processStockRules.process();

 

according to documentation it is supposed to inform the asset manager but i do not see the task ticket trigger too , please advice on how to make this work 

6 REPLIES 6

AnveshKumar M
Tera Sage
Tera Sage

Hi @chercm 

You are calling a script include global.ProcessStockRules() in your code, you can check this script include for the actual where the processing happens.

 

And I checked the code in this script include I see the event being triggered using gs.eventQueue().

 

Please mark my answer helpful and accept as solution if it helped you 👍

 

Thanks,
Anvesh

@AnveshKumar M  where can i find this script : global.ProcessStockRules() and gs.eventQueue() ?

@chercm navigate to System Definition -> Script Includes and search with name field as 

ProcessStockRules and open the record to see the script in it.

Thanks,
Anvesh

@AnveshKumar M i checked on the system logs for email notifications , there should a lot of email supposed to be sent out from my PID but i did not receive anything . is this normal ?