- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi guys!
I have created a variable inside a Catalog item that it's a reference type to the table service_offering. I have called it assignemnt_group. This variable is working fine.
Then I have created the Assignment rule that applies to this item, but the script is not working for me.
I have tried with several things, no good results. There is a way I can do this, but with the variable instead with an specific value?
current.assignment_group.setDisplayValue("name_of_assignment_group_2");
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Cristina,
if the assignment group is on service catalog form this works
if you need you need Assignment group to be picked from catalog variable
you can proceed with Assignment Rule, Flow Designer or BR Approach with below script can be used in Assignment Rule and Before BR on insert
if (current.variables.assignment_group) {
current.assignment_group = current.variables.assignment_group.toString();
}
with Flow get the Catalog variable action and update the RITM record.
if the solution works kindly mark helpful
Regards
Sudhanva Chandra D
Certified ArchX || 8x ServiceNow CIS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Just for clarification because I didn't gave the complete picture.
assignment_group is a reference to the table sys_user_goup and is set with the script on change:
From now, none solution is working 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Cristina,
if the assignment group is on service catalog form this works
if you need you need Assignment group to be picked from catalog variable
you can proceed with Assignment Rule, Flow Designer or BR Approach with below script can be used in Assignment Rule and Before BR on insert
if (current.variables.assignment_group) {
current.assignment_group = current.variables.assignment_group.toString();
}
with Flow get the Catalog variable action and update the RITM record.
if the solution works kindly mark helpful
Regards
Sudhanva Chandra D
Certified ArchX || 8x ServiceNow CIS