Can a business rule find its own Sys ID?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 08:06 AM
I would like to create a variable in a Business Rule containing its own Sys ID (dynamically) to pass that variable inti a function to another Business rule - how can I do this?
current.sys_id will get the Sys ID of the record that the business rule is running against. I would like to get the Sys ID of the business rule from itself when it is called.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 08:07 AM
Hi Liv,
You can query the sys_script table with name of the business rule to get its sys_id.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 08:11 AM
Hi Sanjiv,
I am looking for methods that avoid hard-coding anything and this would require hard-coding its name into a GlideQuery
Liv

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 08:34 AM
Just curious. Is there any specific reason why you couldn't use script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 08:39 AM
To do what... ?