- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 06:19 AM
HI Community,
I have a requirement; task needs to be assigned to requested for's hub.
Requester's hub assignment group can be found in the field called Hub on the Location form of the location the requester is assigned to. For example, if the requester's location (mentioned in the Location field of their user profile) is OH-Ohio-Work then the hub assignment group for this location mentioned in the Hub field of this location screen will be the one the above-mentioned task will be sent to.
For that i have created a catalog task and in advanced condition written this script
Thanks in Advance!
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 12:30 AM
Oh well if its a group, you need to change cmn_location to sys_user_group

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 12:30 AM
Oh well if its a group, you need to change cmn_location to sys_user_group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 08:33 AM
Hi @suuriya ,
Please check 2 points
1. Try to place your code like
task.setValue('assignment_group', hubs);
task.update();
2. Assignment Group is reference field so please check the display true field has the like for example display field is Name so please check if name has some value or not.
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 08:44 AM
@suuriya ,
Check one more thing like you can log what is coming in hubs , assignment_group is reference field so we need sys_id.
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 08:51 AM
HI @Community Alums ,
Thanks for the reply
I tried by adding task.update() but still it didnt worked and i also use gs.addinfomessage to check the hubs it is displaying the value/name present in hub field of the location form.
Requester's hub assignment group can be found in the field called Hub on the Location form of the location the requester is assigned to. For example, if the requester's location (mentioned in the Location field of their user profile) is OH-Ohio-Work then the hub assignment group for this location mentioned in the Hub field of this location screen will be the one the above-mentioned task will be sent to.
In catalog item field called requested for (reference field), in user form the location field is reference and in location form the hub field is single line and in task assignment group field is reference