Is my business rule condition correct?

DanielG
Tera Contributor

Hello,

 

I created a business rule that runs against the Reassignment History (u_reassignment_history) table.

The condition that I need to trigger against is when the new assignment value is "App Eng"

 

Here is what I added to the advance condition field: 

current.u_new_value == 'App Eng'

 

App Eng is the name of the assignment group. Please see my image to review my business rule:

NOTE - I have a larger script but for now I just have the log statement just to see if the business rule gets triggered by my condition. So far it isn't working.

Screenshot 2023-11-29 at 9.07.59 AM.png

 

I want the business rule to be triggered anytime I change from one assignment group to "App Eng"

Is my condition formatted correctly?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

You can dot walk from there - go to the bottom of the drop down - show related fields

JoroKlifov1_0-1701282018309.png

 

View solution in original post

15 REPLIES 15

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

"App Eng is the name of the assignment group"

 

So is this field a string field or a reference field? Asking because you do mention assignment group, usually that would be a reference field. With that... a sys_id! So you would need to check on the sys_id, not on the name.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hey @Mark Roethof and @H S B I just checked and its a reference field. I captured the sysID for App Eng and I set the condition to:  current.u_new_value == '953eef776fa4c2401440523e5d3ee4ce'

see image below:

Screenshot 2023-11-29 at 9.54.43 AM.png

However, I'm still not seeing my log even though you can see that I updated this recent record to App Eng as New Value -

Screenshot 2023-11-29 at 9.58.14 AM.png

 

Any ideas?

How does the When to run section look like?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Here you go @Mark Roethof :

Screenshot 2023-11-29 at 10.09.39 AM.png