- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2020 12:57 AM
I would like to trigger the UI action from business rule based on the product class condition.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2021 10:46 PM
Glad to know that it helped.
If this is resolved feel free to mark appropriate answer as correct & helpful to close the thread and others can be benefited by this.
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
‎09-07-2020 01:00 AM
Hi - You can trigger UI action based on the user action. That said the only way to trigger UI action code is to move the script to a business rule script. (Assuming this is a server side code).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2020 01:08 AM
Hi,
It is not possible to trigger UI action from business rule.
As suggested by Pradeep you should then move the code to BR.
Please share the script and further assistance can be given
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
‎09-07-2020 03:52 AM
Thank you for the response.
I asked to automate the trigger Receive button on the purchase order. It means based on some condition receive functionality should get triggered.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2020 07:58 AM
You can include the similar condition as part of the filter conditions in BR and trigger the script only when certain conditions are matched.