CopySourceTable
  • 1 Minute to read
  • Dark
    Light
  • PDF

CopySourceTable

  • Dark
    Light
  • PDF

Article summary

Copies a table from an existing project into the current project

KeyValueDescription
methodCopySourceTable
project"currentprojectname"This project that will receive the copy of the table. 
sourceProject"sourceprojectname"The project containing the table to copy.  This must be different to "project" or an error will be raised.

"Error copying Data"
table"sourcetablename"The table to copy
targetName"newtablename"The name to give the new copy of the table
moveFilestrue/falseOptional.  If true, data files will be moved rather than copied.
CAUTION
Moving files could result in a permanent loss of data if the move process is interrupted - be sure that source and target projects are protected from interruption.  See LockCodeAquire for more information on locking a project from script.
allFieldstrue/falseDefault = true.
If true, engineered fields will be included in the copy/move
fields[][
"field1",
"field2"
]
Optional.   A list of shortfieldnames to copy/move


{
  "method": "CopySourceTable",
  "project": "CurrentProject",
  "sourceProject": "ProjectToCopyFrom",
  "table": "TableToCopy",
  "targetName": "NewTableName",
  "allFields": true
}





Was this article helpful?

What's Next