- 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-07-2024 06:32 AM
Hi Suuriya,
You're setting the display value as the underlining value rather than the sys_id.
task.assignment_group = hubs.getDisplayValue(); // This is causing your issue
task.setValue('assignment_group' , hubs.getValue());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 06:54 AM
HI @Kieran Anson ,
Thanks for the reply
I tried task.setValue('assignment_group' , hubs.getValue());
and also tried task.setValue('assignment_group', hubs);
but still it is not working as expected showing null value in task

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 06:55 AM
To debug, look at the XML of the record and see what value is in the field, is it a sysid? Is it the expected sysid?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 07:52 AM
I checked the xml of the task created it is showing like this
Eit - myTechonology is the hub value.