Skip to main content
Solved

Dynamic Attribute Renaming using a Mapping Spreadsheet

  • April 23, 2025
  • 1 reply
  • 35 views

rickarhayd
Participant
Forum|alt.badge.img+4

Hi all, I am querying an API to download a large number of tables (50+) as CSVs that will be written into a DB. I have automated the process of downloading the tables and dynamically writing them to the DB, but the default/source attributes the tables come with when downloaded are messy/poor quality.

One attempt at this I’ve tried is to set up a mapping spreadsheet for each table with an example shown below.

 

I have been able to use a SchemaMapper and dynamic CSV writer to write a single table with the updated attribute names, but I am wanting to do this dynamically using a WorkspaceRunner to automate updating the attribute names for all the tables, while also reading and writing records to the DB.

Does anyone have any advice for this? The SchemaMapper is not able to take parameters/attributes to read the mapping spreadsheets so it does not seem like an option.

Best answer by takashi

Hi ​@rickarhayd ,

You can create a user parameter linked to Dataset and/or Table parameter in the SchemaMapper on the Navigator window. Right click the parameter > Create User Parameter.

You can then pass preferable Excel file path and/or sheet name to the parameters through WorkspaceRunner.

Create User Parameter linked to SchemaMapper Parameter

 

View original
Did this help you find an answer to your question?

1 reply

takashi
Influencer
  • Best Answer
  • April 23, 2025

Hi ​@rickarhayd ,

You can create a user parameter linked to Dataset and/or Table parameter in the SchemaMapper on the Navigator window. Right click the parameter > Create User Parameter.

You can then pass preferable Excel file path and/or sheet name to the parameters through WorkspaceRunner.

Create User Parameter linked to SchemaMapper Parameter

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings