I want to trigger a scheduled job from Business rule..

saurabhchande
Tera Expert

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

10 REPLIES 10

Fabian Kunzke
Kilo Sage
Kilo Sage

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

Jaspal Singh
Mega Patron
Mega Patron

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.

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.

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.