How do I trigger a Business Rule with a UI Action?

RosMcG
ServiceNow Employee
ServiceNow Employee

Hey all!

I'm very new to the ServiceNow world. 🙂

I'm trying to trigger a business rule using a UI Action. The business rule is working if do things manually, but the UI Action is not.

Context:

Using a UI Action to update Case Category to "Product Issue".
When Case Category updated to "Product Issue"
Trigger business rule
before update
to add specified users to a watch list and generate a notification with a link to the actual Case.

Issue:

The UI Action is not updating the Case Category at all.
But, when I manually update the Case Category, the business rule is working, except for the link to the case.

Ask:

How do I fix my UI Action? (It's about making the user experience easier for the Service Agent and cross-team collaborators).
How do I get the link to the Case in the notification?

Format:

images attached.

Thanks in advance! Appreciate any assistance.

 

Roslyn 

1 ACCEPTED SOLUTION

RosMcG
ServiceNow Employee
ServiceNow Employee

Thanks all!

Can you believe it worked when I changed the update value to '4', rather than 'Product Issue'?

Thanks for your input though.

🙂

View solution in original post

7 REPLIES 7

Hi,

So the issue was with the choice value since it was a choice field and you were giving the label and not the value

Glad that it helped

Please consider marking appropriate reply as Correct & 👍Helpful so that it does not appear in unanswered list

Regards
Ankur

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

Thanks for the update Roslyn. Yes, you are right.When you write a script that references a choice list, you need to know the value that is associated with each choice 🙂

Let me know if that answered your question. If so, please mark appropriate response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

 

Thank you,

 

- Pradeep Shar

 

RosMcG
ServiceNow Employee
ServiceNow Employee

Additionally, since building this out, I had a play around with Flow Designer and feel like that will be a better way for me to do something like this in future.

Thanks for your help everyone!

 

Roslyn