Can I insert into multiple tables using a single Transform Map?

ServiceNowSteve
Giga Guru

Long story short: I have data that needs to make records on multiple tables but it's all given to me in a single excel sheet.

Can I make the TM somehow say "Column A" goes to this table, "Column B" to this table and so on?

1 ACCEPTED SOLUTION

Steve McCarty
Mega Guru

Depending on the data, it may be easier to do multiple transforms on the same data source.  Each transform map would point to a separate table.  You can set an order value to the transform maps so that they run in a particular order.  Then if they run on a schedule, you would import the data and then it would run through all the rows for the first transform map and then the second and continue on for however many transform maps you set up for the data.

View solution in original post

8 REPLIES 8

Yeah I was hoping to avoid that but it may just have to be how it's done.

It actually is helpful when putting data in separate tables to break it into separate transform maps.  Especially if it is a simple matter of column A goes in table 1 and column B goes in table 2.  It seems like a lot of work, but it is usually pretty straightforward and makes it easier to figure out what you were doing when you or someone else has to come back and update something in a year or whenever.  

The exception is if your data requires a lot of scripting to make it go from the original data source to the target tables.  If you are already manipulating and massaging the data, then it may be easier to combine that together and just script everything in the single transform map.  You can create an onBefore script that will run for each row in the data source and then use GlideRecord queries to find and update all the information you need to change for that row of data.

Shishir Srivast
Mega Sage

May be you can try creating multiple transform map, if you have to transform the data from same data source. I think it would be tough to transfer the data using single transform map. I believe it's 1-2-1 mapping.

find_real_file.png

Thank you for the screenshot of what @McSteve was saying, I appreciate the additional insight!