The "copyIntegrationTableTransformSteps" action causes the server to replace the target table's transform steps with the source table's steps.
The response contains a full description of the updated target integration table. It also includes a "previousTransformSteps" property that contains the previous value of the target integration table's transform steps.
Request examples
Minimal
The following example replaces the transform steps assigned to "myTable2" with those from "myTable1". It uses the database and owner specified in the current JSON action session (see "createSession" and "alterSession".
{
"action": "copyIntegrationTableTransformSteps",
"params": {
"tableName": "myTable1",
"targetTableName": "myTable2"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
The following example replaces the transform steps assigned to "myTable2" with those from "myTable1". It uses fully qualified table names that specify the database and owner of each table.
{
"api": "hub",
"action": "copyIntegrationTableTransformSteps",
"params": {
"databaseName": "myDb1",
"ownerName": "myOwner1",
"tableName": "my_source_table",
"targetDatabaseName": "myDb1",
"targetOwnerName": "myOwner1",
"targetTableName": "my_target_table2"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
databaseName |
The You specify this property when you want to use a different database instead of the default. This property is useful because objects, such as tables and code packages, can have the same name in multiple databases. This feature allows you to create multiple environments in the same server and reuse the same JSON actions in each environment. For example, you can create It is an error to set If no default database is specified during |
Defaults to the session's "defaultDatabaseName" property |
string | 1 to 64 bytes |
ownerName |
The You specify this property when you want to use a different account instead of the default. Your session's account must have the appropriate privileges to access the code package. This property is useful because objects, such as tables and code packages, can have the same name in the same database as long as different accounts own each object. This feature allows you to create duplicate objects for different users on the same server and reuse the same JSON actions on those objects. For example, an administrator can copy objects from a production environment to her account so she can troubleshoot an issue using the same JSON actions, JavaScript, and SQL code. It is an error to set If no default owner is specified during |
Optional with default of the session's "defaultOwnerName" property |
string | 1 to 64 bytes |
tableName |
The See table name in System limits for the table naming requirements and limitations.
"params": {
"tableName": "ctreeTable"
} |
Required - No default value | string | 1 to 64 bytes |
targetDatabaseName |
The
|
Optional with default of ""
|
string | 1 to 64 bytes |
targetOwnerName |
The |
Optional with default of ""
|
string | 1 to 64 bytes |
targetTableName |
The
|
Optional with default of ""
|
string | 1 to 64 bytes |