Trigger Scheduled Job from Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 03:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 11:09 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 12:43 AM
Hi
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 02:12 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 03:19 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 12:48 PM
Can you please help me with the syntax for sending values to sys_property from BR.