- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:04 AM
I have a service Request that I would like to have auto-assigned based on a value from one of the variables. The variable is a reference field called "it_team" and it references the sys_user_group table. can I do this via the workflow, or do I have to use a catalog client script? IF so, how would I do that?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:27 AM
Oh, okay. No worries, we all start somewhere
That would be even easier. In the Run Script activity, add:
current.assignment_group = current.variable_pool.it_team;
current.update();
To my knowledge, you can only use table fields, not catalog variables in the 'Set Values' activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:18 AM
Sorry, read this too quickly. I didn't realize you wanted to assign the Request. You would do that in a 'Run Script' activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:20 AM
var req = new GlideRecord('sc_request');
req.get(current.request);
req.assignment_group = current.variable_pool.it_team;
req.update();
**caveat: Didn't debug, just threw that out from memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:21 AM
Well, I want to assign the RITM. If I use a Run Script, what would my script look like. Sorry, I'm a fairly new admin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:27 AM
Oh, okay. No worries, we all start somewhere
That would be even easier. In the Run Script activity, add:
current.assignment_group = current.variable_pool.it_team;
current.update();
To my knowledge, you can only use table fields, not catalog variables in the 'Set Values' activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 08:32 AM