- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi,
I have a use case where I need to import data from an Excel file into a custom TEST table in ServiceNow. The table has the following fields:
- type
- code
- category
- subcategory
- description
My Excel file contains three sheets/tab:
- TEST_one
- TEST_two
- TEST_three
Each sheet contains relevant codes and descriptions. I’ve created a single Data Source using this Excel file and want to import all data into the code table using one import set table and one Transform Map.
✅ Requirement:
I want to set the type field in the target table dynamically based on the sheet name:
- If the data is from TEST_one, set type = "task"
- If from TEST_two, set type = "incident"
- If from TEST_three, set type = "problem"
Below is the sample file snap,How can i set "type" field based on sheet name and also how can i process three sheets in single data source
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Why to make it complex by having 3 sheets?
Do this
1) ask user to have data into single sheet and add column for Type and ask user to enter the Type as either task, Incident or Problem
2) then your job is easy and you can directly map the fields with target
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
2 weeks ago
Hi @Anjan 2025
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Follow this post to load data from multiple tabs in an excel to target tables,
https://www.servicenow.com/community/developer-forum/parse-excel-xlsx-file-with-ease/m-p/2017439
You can also use same excel to load data to multiple target tables using Robust Transform Maps, see if it helps,
If this helped to answer your query, please accept the solution and close the thread.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Thanks for marking the post as helpful.
If my response helped to guide or answer your query, please accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Why to make it complex by having 3 sheets?
Do this
1) ask user to have data into single sheet and add column for Type and ask user to enter the Type as either task, Incident or Problem
2) then your job is easy and you can directly map the fields with target
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