dotwalk filter condition in Business Rule

Ibrahim Akar
Kilo Expert

I have a Business Rule on the incident form that runs a script that sends a page request to OnSolve MIR3. 

The current filter condition for the business rule is Priority >= 2 

The paging is based on the assignment group. So ServiceNow sends the assignment group name and OnSolve figures out who to send the page to based on schedules in that system. However, this is just too broad because the vast majority of our assignment groups do not get paged and so we only want the business rule to fire if the support group accepts paging.  On our group form we have a true/false flag that indicates whether or not the support group can be paged and the field name is basically called MIR3. 

So I need to add another condition that says .. 

look at the sys_user_group record for the current assigned group and see if the MIR3 flag is set to true or false. If true and the priority of the incident is >= 2 then send the page. If the MIR3 flag is false do nothing. 

Thanks

 

1 ACCEPTED SOLUTION

rahulpandey
Kilo Sage

Hi Ibrahim,

Assuming , Field name for True/False flag for Accept Page is "u_accept_page"

You can use dotwalking in condition builder to achieve this,

Assignment Group.Accept Page = true;

Else, you can write below code condition field in Advance tab of business rule,

current.assignment_group.u_accept_page == true

View solution in original post

13 REPLIES 13

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Ibrahim,

You should be able to dot-walking with in BR filter condition. Is that not working?

rahulpandey
Kilo Sage

Hi Ibrahim,

Assuming , Field name for True/False flag for Accept Page is "u_accept_page"

You can use dotwalking in condition builder to achieve this,

Assignment Group.Accept Page = true;

Else, you can write below code condition field in Advance tab of business rule,

current.assignment_group.u_accept_page == true

so do I need an if statement 

 

if ( current.assignment_group.u_mir3 == true) { // code here 

}

 

Thanks Rahul

DirkRedeker
Mega Sage

Hi

You can add dot-walked fields in the Filter as shown in the screenshot below:

find_real_file.png

Select the dot-walked field as shown below:

find_real_file.png

and then select the desired field (in your case the "MIR3" field), similar to shown below:

Let me know if that answers your question.

BR

Dirk