set assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I want to set assignment group for request on the basis of type of request and location from workflow how do i do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I believe your question was about REQ or RITM which I already answered.
now coming to your follow up question for task then yes you can use advanced script in "Catalog Task" activity and set the group using this syntax
-> Workflow run script -> REQ and RITM Update
-> Catalog Task activity advanced script -> Catalog Task Update
var requestType = current.variables.requestTypeVariableName;
var location = current.variables.locationVariableName;
if (requestType == 'your value' && location == 'abcd') {
task.assignment_group = 'groupSysId1';
task.short_description = 'your short description';
}
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
@RoshaniB
To implement this use case please try to use the ServiceNow Flow Designer/Decision Builder to keep your latest requirements align with modern features.
Please refer below url:
Migrate Legacy Workflows to Flows and Playbooks
If my response helped, please mark it as helpful/correct.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @RoshaniB ,
You can use a Flow Designer Decision Table for this scenario. In the decision table, you can create multiple combinations with corresponding outputs. Instead of manually writing or hardcoding sys_ids, you can use the Reference data type for options, which makes the configuration more flexible and easier to maintain.
You can also refer to the attached example and replace Manufacturer and Asset with Request Type and Location, and then configure the appropriate Assignment Group based on those conditions.
Regards,
Aditya ,
Technical Consultant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
@RoshaniB , you can make use of flow designer decision table builder as suggested by other community members.
If you want to do this using workflow editor only , you can do it within single script . Check @Ankur Bawiskar 's code in order to achieve this.
Regards,
Nayan