How to trigger UI Action from Business rule

jaan
Tera Contributor

I would like to trigger the UI action from business rule based on the product class condition.

1 ACCEPTED SOLUTION

@jaan 

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

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

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).

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

jaan
Tera Contributor

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. 

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

You can include the similar condition as part of the filter conditions in BR and trigger the script only when certain conditions are matched.