The CreatorCon Call for Content is officially open! Get started here.

Load one excel for multiple tables

Lean S
Mega Expert

Hi All,

I am working on import sets and transform maps. I wanted to load one excel sheet for loading in multiple tables.

This is for loading into test case and related test case steps instance

Under test plan I have to load test cases as first step and second I have to map to test case -> test case step

so from one excel sheet 

test plan -> I have load test cases

test case -> to load its related test case steps.

How can achieve using one excel sheet. Any specific coding needed for this.

 

Thanks,

Lean S

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

From single excel file you can transform data to multiple target tables.

I assume you must be having a data source to which this excel would be attached

Define the transform maps accordingly in sequence with the Order for those target tables

1st load the Test Plan

2nd Load the Test case

find_real_file.png

Regards
Ankur

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

View solution in original post

49 REPLIES 49

Great.

Now go to your 2nd transform map.

Map this new field in xls with the test instance column of your table.

And under reference field value name, mention the column name of your 1st table (that is newly created).

No need of source script.

This should work

HI,

Now its working. Great for that your assistance.

A small query this will work if we have 

1 test case -> 1 test case step

now we have like

1 test case -> 10 test case steps

 

then how we can differentiate and make it work. Kindly suggest

 

Thanks,

Lean S

 

In your xls, if there are 10 test case steps, your test case data will be duplicated in the green section. 

So we shall not have any issue. It will work.

Only thing you need to ensure is in your 1st transform map, make this new field in xls as coalesce. That way your test case data will not be inserted multiple times.

Kindly mark the appropriate comment as a correct answer and all my other replies as helpful for the time and effort spent.

Hi,

Really Sorry for turning back after a long time, I was totally off from work for long time. 

I made unique new field as colease but still Test cases are creating duplicates. So how we can make like below:

1Test Case -> 1Test CAse step (working fine)

1 Test Case -> 10 Test Case steps. (Made new field as colease )

in this scenario I am getting duplicates created for test case , this should not happen. 

Please guide me how we can map already created test case 1 -> 10 test case steps. with out creating TC duplicates.

 

Thanks,

Lean S

 

Hi

Sorry, i missed your message. an you share the sample xls with the new column and also let me know on which table you hve added this new column.