Trigger Scheduled Job from Business Rule

MKM
Mega Expert

How do I trigger a scheduled job from the business rule and send the values from the business rule to the scheduled job that is being triggered?

Currently, I am using this to trigger the Scheduled job, but I want to also send values to the scheduled job from the business rule.

find_real_file.png

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@ MKM  

there is no OOB way to send the information from business rule to job

another way is

1) create system property which will be set from business rule

2) then get the system property value using gs.getProperty() to get the values.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thanks for your response. The business rule has roughly 15 values that are being copied from the parent catalog item and has to be moved to the child catalog item. Shall I be creating 15 system properties for it or can I save them all in one property and call it from the scheduled job.

 

-MKM

Hi,

nope only 1 property and add those values as comma separated string

then in schedule job you can get the value and split with comma to get each value

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@ MKM  

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Can you please help me with the syntax for sending values to sys_property from BR.