MapFieldNames
  • 1 Minute to read
  • Dark
    Light
  • PDF

MapFieldNames

  • Dark
    Light
  • PDF

Article summary

Bulk rename of a list of fields in an individual table.

KeyValue(s)Description
method"MapFieldNames"Bulk rename of a list of fields in an individual table.
project"CurrentProjectName"Current Project name
table"TargetTableName"Table containing fields to be renamed
fields[
{"sourceName":"oldname1"  , "targetName","newname1"},
{"sourceName":"oldname2"  , "targetName","newname2"}
]
Array of sourcename/targetname pairs to rename
InjectTables
MapFieldNames is not supported on injected tables.



{
  "method": "MapFieldNames",
  "table": "DELTA",
  "fields": [
    {
      "sourceName": "test",
      "targetName": "index"
    }
  ],
  "description": "Rename test to index",
  "project": "Issues"
}

Was this article helpful?