Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Automatically expand record columns ?

I am getting a JSON response from a web source that I convert into a table and then execute Table.ExpandRecordColumn. example:         "metaData": {             "A": "1",             "B": "2", ...
  • mahoneypat's avatar
    5 years ago

    Depending on if you have a Table or a Record in your JSON response, you can use the Table.ColumnNames or Record.FieldNames functions to dynamically return the Column/Field names as a List you can then use in your Table.ExpandColumns functions (to replace the List of hardcoded names).

     

    Pat