I want to trigger a scheduled job from Business rule..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 04:45 AM
I want to trigger a scheduled job from Business rule.. Can anyone let me know if it's possible and if yes then how? Many thanks
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 04:49 AM
Hi,
Alternative: Cut the code from the scheduled job and put it into a script include. Then change the scheduled job to call the script include. Do the same with the business rule. This way the code is contained within one script include and can be used in both cases (you could even call it via AJAX within a client script or ui-action).
tl:dr: Don't trigger the job, call a script include.
Greetings
Fabian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 04:50 AM
Hi Saurabh,
Scheduled jobs are usually set to run at a specific time, interval while Business rules runs when record is inserted/updated/deleted/queried.
Can you elaborate more about what you are trying to accomplish? It would be better to know what your requirement is & hence can help accordingly.
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 04:53 AM
I want to run a schedule script execution from Business rule to update work notes in Incident which is updated/ inserted since work notes inserted from BR shows name of the user but we want to show that those work notes are updated by System.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 07:04 AM
Thanks for the info Saurabh.
I would recommend you to go through link once.
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.