trying to Populate Catalog tasks by cost center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 02:39 AM
Good Morning
I have written a script in a create catalog task in the legacy workflow to it should be getting a variable from the RITM is it is being create on and using that variable to populate the assignment group for the task. However, I can see from the logging it is able to retrieve the variable but then says it can't find the RITM and the assignment group on the task is left blank.
as it gets the Variable from the RITM I don't understand why it says it then can see it to create the Assignment group.
here is the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 02:43 AM
did you add logs and see what came in log?
I will suggest to debug the switch statement.
you can store the sysId in variable and then at the end set the group
You should be use before insert/update business rule on sc_task
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
07-01-2025 01:00 AM
Hi there this is the error that is triggered ("
Could not find valid RITM record from Catalog Task.");