
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 09:55 PM
Hello Community,
How can I capture the business rule name and send it to the sys log without have to explicitly type the name?
gs.info("Business rule XYZ triggered.");
To use current.name does not work because current applies to the table where the business rule is run.
Thank you.
Desmo
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 11:20 PM
Hi,
you will have to hard-code the name of business rule.
there is no way to get the name of BR dynamically
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
04-15-2022 11:20 PM
Hi,
you will have to hard-code the name of business rule.
there is no way to get the name of BR dynamically
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
04-16-2022 12:02 AM
What is the requirement?
For debugging purposes ,you can use the script tracer functionality.
Anshu