
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 03:31 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2019 04:35 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2019 01:20 AM
Thank you all!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2019 01:22 AM
Unfortunately I can mark only one as correct! 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 01:24 AM
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