Script to apply template based on incident category - what is missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 12:26 PM
I am trying to create a script for the service catalog record producer to create an incident from the self-service portal.
I need this script to create an incident and automatically assign it to specfiic groups based on 1) the user location 2) incident category 3) assign a template with the assignment group.
Here is the script I have. Everything works except the bottom half if statements for the category "Inquiry / Help" and category "Applications".
It will not assign the assignment group in the created ticket. It adds the assignment group based on user location.
Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 12:44 PM
Hi @Community Alums,
Did you check if you have any "Assignment rules" set for your table? Could you check the history of the assignment group field to check if it gets updated after the record gets inserted?
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2025 01:01 PM
There re assignment rules for location to assigned service desk group. The group I want HR incidents assigned to is brand new have no records associated with it. I have tested my script in dev and the if statements for ERP work, just not the ones for HR.