- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 03:19 PM - edited 10-10-2023 03:21 PM
Hi Experts,
I had a question that is similar to this post, but slightly different: https://www.servicenow.com/community/developer-forum/create-bulk-ritm-and-single-request-from-excel/...
Background: we are sunsetting an application and moving processes into ServiceNow. We now need to migrate historical case details from the sunsetting application into SNOW for reference purposes.
Requirement:
- We have an excel file where each row has data for a single RITM/REQ
- We need to populate data from Excel into each RITM's variable(s) and fields on the RITM (sc_req_item) table
- We need to create these RITMs/REQs in an closed complete State and not trigger any notifications
Thank you in advance!
Edi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 02:40 PM
I'm closing this thread as I was able to figure it out. For anyone out there who has a similar use case, I ended up creating records on each table: sc_request, sc_req_item, sc_item_option, sc_item_option in a loop. This way, you can update fields on the REQ/RITM table and also account for each variable that needs to be created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 11:18 PM
So what did you start with as per that link and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 06:00 AM
Hi @Ankur Bawiskar - I'm currently stuck with the onComplete transform script. I'm looking to get some help in updating the script in this post to meet my requirements.
Thank you,
Edi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 07:01 AM
Please share what you tried in onComplete transform script?
Have you written onComplete to mark state as close complete?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 08:30 AM
I'm having issues updating this onComplete script as I'm seeing that it creates multiple RITMs under the same REQ. I'm also not finding a way to update columns on the RITM table (for example, setting it to close complete). If I can get some assistance with this part, and suggestions on not triggering notifications, I think I can update the rest.