Dot walking in "Set field values" not working as expected in the Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016 08:06 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016 08:57 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016 11:19 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016 09:15 PM
Change the field name as per your need.
var assignee = current.assigned_to.getRefRecord();
assignee.vip=true;
assignee.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 12:39 PM
Thanks for this answer, solved my issue