How to check view in business rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 05:18 PM
Hi: I have a business rule that I only want to run on a specific view. Anyone know how to do a view check in a business rule? Thanks! Rita
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2019 07:25 AM
i was just searching for this answer!
thank you!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2016 11:32 PM
Hi Rita,
You can use the below function to get the view in business rule (Server Side)
getView() -
|
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2021 12:49 PM
I found this in an OOTB BR:
GlideTransaction.get().getRequestParameter("sysparm_view")
Can use it in the condition field if you want to only fire a BR on certain views.
Or use it in the script.