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

Okay, all looks good.

The transform map is good.

Test without source script first. and check if the test_case_instance in your 2nd table got filled with the reference entry or not?

 

Hi,

I tested without source script. Its not saving in the correct reference field. I am giving as seen in screenshot to Test Plan field but its been not saving in it.

 

Thanks,

Lean S

In the transform map under reference value fiedl name (as per screenshot), change the value to tm_test_plan ad test it.

 

 

Hi,

Changed to the element name and its saving in a different field instead of test plan field.

Its saving in test case field.

 

Thanks,

Lean S

Hi,

No, that is correct.

In your test case step table, you need to refer to test case instance table and the relationship will be built only thorugh test_case_instance field, which is correct.

The test plan field is for comparing the test plan number in xls with the test case table (test plan number) and get the sys_id for reference.

Kindly mark all the comments as helpful if this has solved the prolbem.