Showing messages from Scheduled Job

Arun Kumar P1
Kilo Contributor

Hello,

Is it possible to show an error message to the form from a Scheduled Job? I tried gs.addErrorMessage('error_message_here') but it's not displaying in the form.

Thank you.

1 ACCEPTED SOLUTION

DirkRedeker
Mega Sage

Hi

scheduled jobs are not running interactive but in the background.

There is NO screen context to the UI. So, using addInforMessage() will never show up from within scheduled jobs.

one thing, you can do is, to log some messages in the system log, or create a custom table and update records there. Then you can show these records on the users side, by list, form or even dashboards and reports.

that way, you hand over the “status” of a scheduled job the the admin user or any other user, who need keep track on the progress of scheduled jobs..

 

let me know, if that solved your issue, and mark my answer as correct and helpful, please.

BR

Dirk

View solution in original post

7 REPLIES 7

Arun Kumar P1
Kilo Contributor

Thank you all! 

Unfortunately I can mark only one as correct! 😞

BryanLegend231
Kilo Contributor

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. nj tickets