- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 06:04 PM
Hey. I'm trying to create a Business Rule that will set vip to true for users who are added to a particular group. I tried creating the BR on the sys_user_grmember table as follows:
I expected that when I added a user to that group (and thus a sys_user_grmember record was created), the user would get vip status, however this isn't working. Any ideas? I didn't wonder if the Action condition doesn't like dot walking to the vip field on the sys_user table.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 07:13 PM
Looks like to update the dotwalking field you need scripting, I also tried but wasn't able to update though i can change the direct field value like user in sys_user_grmember table and was able to print the message.
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('sys_user');
gr.get(current.user);
gr.vip = true;
gr.update();
})(current, previous);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 07:13 PM
Looks like to update the dotwalking field you need scripting, I also tried but wasn't able to update though i can change the direct field value like user in sys_user_grmember table and was able to print the message.
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('sys_user');
gr.get(current.user);
gr.vip = true;
gr.update();
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 07:53 PM
Thanks for confirming that and providing the script, Shishir, it worked perfectly. I tried scripting it myself but without using GlideRecord.