How can we map the sc task to specific assignmnet group pick the data from cutom table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 03:42 AM
Hi,
I have requirement like after the submitting the catalog form it should create a SC task and map to specific group which mentioned in the one of the cutom table called "u_new_table" (Columns like Assignment group, Region, Company and Location) example: If users location on the form is "India" then it should map to group called "Group1" and this record has been creeated in the custom table u_new_table but How can I map this automatically from script include please help me with the script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 05:56 AM
are you using workflow or flow to create the catalog task?
You can lookup on that custom table and bring the group and then set it on Catalog task.
Should be an easy solution. where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 06:39 AM
Hi @Ankur Bawiskar We are using the Flow for this sc mapping and in that calling the script include function here to get this mapping but in that script include I need help how to get the location field value (Example India) of this custom table to get this mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 06:42 AM
when you set the field value for Assignment group you can use the inline script and call the script include and handle the logic
what did you try so far share screenshots and what debugging you did?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 06:57 AM
Hi @Ankur Bawiskar below is my script include:
Here my main query is How can I get that location from that catalog form to this script include so that I can use that condition