Skip to main content
Solved

Dynamic Attribute Renaming using a Mapping Spreadsheet

  • April 23, 2025
  • 1 reply
  • 87 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

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • 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