Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Data upload via import set

ektamestri
Tera Contributor

Hi Community,

 

I need to update historical data on closed Major Incident (MI) records. I already have a spreadsheet containing the updated information. The challenge is that the fields that need to be updated are not all on the incident table— present as related lists such as incident_task, affected locations, outage table, some are present in problem task, for this we have a reference of problem number on MI form. Since the data spans multiple tables, I’m trying to understand how this can be accomplished using Import Sets, or whether there’s a better alternative approach for updating these record.  Can you suggest any solution.
 
Thanks
3 ACCEPTED SOLUTIONS

Tanushree Maiti
Tera Sage

Hi @ektamestri 

 

I will suggest Import Sets with Multiple Transform Maps

1.Ensure your spreadsheet has the main Incident Number (inc_number) on every row, along with the identifier for the related record (e.g., task_number for incident tasks, ci_item for outages).
2. Navigate to System Import Sets > Load Data. Create a new staging table.
3.Create Transform Maps: Create separate Transform Maps for each table and map the data from staging table to target table:
a.Incident Task (incident_task) -> Coalesce on number.
b. Problem Task (problem_task) -> Coalesce on number

etc

 

Make sure for Incident task and problem task, you are mapping incident number properly ..

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

Ankur Bawiskar
Tera Patron

@ektamestri 

you can use onAfter transform script and handle the data insert/update using that

no other approach

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

yes that's feasible

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Deepak Shaerma
Mega Sage

Hi @ektamestri 

Use onAfter transform script to update the remaining fields that is not on you MIM table, 

For example - Query incident_task where incident = target.sys_id. update the relevant fields based on source.u_task_data.
ts.png

Happy to help! ‌‌
To help others in the community find this solution, kindly mark this response as the Correct Answer ‌‌ and Helpful‌‌.
Warm Regards,
Deepak Sharma
Community Rising Star 2025