Dot walking in "Set field values" not working as expected in the Business rule

Nik Amy
Tera Contributor

Hi All,

On incident form I have a Business rule with filter condition like: Category changes to   "Internet".

And then on Actions tab, set field values, I have used dot walking which is like: Assigned to.VIP To True.

But this is not at all changing the VIP field to true on the conditions met. Am I missing out anything..

Also since I am not writing any script, I have not checked the 'Advanced' field, but still its always ticked after I submitted the BR. So is "When to run" linked to my set field values? Guess not, but please let me know.

TIA

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Nikh,



I don't think Dot-walking will set the values. Hence you have to make a GlideRecord to target table and then update the field via script.


Thanks for the reply Pradeep &   kalai ..



I know that I can achieve the requirement via script, but just wanted to try making use of dot walking (which now I understood that its simply existing with no use)



/BR


Nikh


Kalaiarasan Pus
Giga Sage

Change the field name as per your need.



var assignee = current.assigned_to.getRefRecord();


assignee.vip=true;


assignee.update();


Thanks for this answer, solved my issue