/task/{taskId}/forced/{forced}/startTask
POST
TDM_Tasks
Starts a task execution and returns the execution's task_execution_id on success. The API can get an optional input of overridden parameters for the task execution.
If at least one of the validations fail, the API does not start the task and returns the validation errors.
Below is the list of the validation codes, returned by the API:
BEandLUs
Reference
selectionMethod
Versioning
ReplaceSequence
DeleteBeforeLoad
syncMode
totalNumberOfReservedEntities
versioningRetentionPeriod
reverseRetentionPeriod
If the validations pass successfully, start the task execution by populating the following TDM DB tables:
taskId
forced - this parameter indicates if the execution should ignore a failure of the task's environment connections validation. If the forced parameter is set to true, then the execution ignores the validation failure and executes the task. If the forced parameter is set to false and the environment validation fails, the execution is not initiated.
An optional request body with overriden parameters for task execution. It is possible to populate all, part , or none of the overriden parameters. The following parameters can be set:
{
"entitieslist": "string",
"sourceEnvironmentName": "string",
"targetEnvironmentName": "string",
"taskGlobals": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"numberOfEntities": 0,
"dataVersionExecId": 0,
"dataVersionRetentionPeriod": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"reserveInd": true,
"reserveRetention": {
"additionalProp1": {}
},
"executionNote": "string"
}
http://localhost:3213/api/task/55/forced/true/startTask
{
"entitieslist": "1,2,4,9,8,11",
"sourceEnvironmentName": "SRC1",
"targetEnvironmentName": "TAR1",
"taskGlobals": {
"Customer.Global2": "value2",
"Customer.CUST_DETAILS": "'{\"name\":\"John\", \"age\":30, \"car\":null}'"
},
"reserveInd": true,
"reserveRetention": {
"unit": "Days",
"value": "10"
}
}
{
"sourceEnvironmentName": "SRC1",
"targetEnvironmentName": "TAR1",
"taskGlobals": {
"Customer.Global2": "value2"
},
"numberOfEntities": 10
}
Override the selected version
{
"sourceEnvironmentName": "TAR1",
"targetEnvironmentName": "TAR1",
"taskGlobals": {
"EMAIL": "john123@gmail.com"
},
"dataVersionExecId": 10
}
{
"entitieslist": "1,2,4,9,8,11,33",
"sourceEnvironmentName": "TAR1",
"taskGlobals": {
EMAIL": "john123@gmail.com"
},
"dataVersionRetentionPeriod": {
"unit": "Days",
"value": "10"
},
"executionNote": "Snapshot 1"
}
{
"result":[{"Number of entity":"The number of entities exceeds the number of entities in the write permission","selectionMethod":"The User has no permissions to run the task's selection method on the task's target environment"}],
"errorCode":"FAIL",
"message":"validation failure"
}
{
"result":
[{"reference": "The user has no permissions to run tasks on Reference tables on source environment",
"syncMode": "the user has no permissions to ask to always sync the data from the source." } ],
"errorCode": "FAIL",
"message": "validation failure"
}
The test connection runs when the forced input parameter is set to false.
{"errorCode":"FAIL","message":"The test connection of [CRM_DB] failed. Please check the connection details of target environment TAR"}
{
"result": {
"taskExecutionId": 43
},
"errorCode": "SUCCESS",
"message": null
}
/task/{taskId}/forced/{forced}/startTask
POST
TDM_Tasks
Starts a task execution and returns the execution's task_execution_id on success. The API can get an optional input of overridden parameters for the task execution.
If at least one of the validations fail, the API does not start the task and returns the validation errors.
Below is the list of the validation codes, returned by the API:
BEandLUs
Reference
selectionMethod
Versioning
ReplaceSequence
DeleteBeforeLoad
syncMode
totalNumberOfReservedEntities
versioningRetentionPeriod
reverseRetentionPeriod
If the validations pass successfully, start the task execution by populating the following TDM DB tables:
taskId
forced - this parameter indicates if the execution should ignore a failure of the task's environment connections validation. If the forced parameter is set to true, then the execution ignores the validation failure and executes the task. If the forced parameter is set to false and the environment validation fails, the execution is not initiated.
An optional request body with overriden parameters for task execution. It is possible to populate all, part , or none of the overriden parameters. The following parameters can be set:
{
"entitieslist": "string",
"sourceEnvironmentName": "string",
"targetEnvironmentName": "string",
"taskGlobals": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"numberOfEntities": 0,
"dataVersionExecId": 0,
"dataVersionRetentionPeriod": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"reserveInd": true,
"reserveRetention": {
"additionalProp1": {}
},
"executionNote": "string"
}
http://localhost:3213/api/task/55/forced/true/startTask
{
"entitieslist": "1,2,4,9,8,11",
"sourceEnvironmentName": "SRC1",
"targetEnvironmentName": "TAR1",
"taskGlobals": {
"Customer.Global2": "value2",
"Customer.CUST_DETAILS": "'{\"name\":\"John\", \"age\":30, \"car\":null}'"
},
"reserveInd": true,
"reserveRetention": {
"unit": "Days",
"value": "10"
}
}
{
"sourceEnvironmentName": "SRC1",
"targetEnvironmentName": "TAR1",
"taskGlobals": {
"Customer.Global2": "value2"
},
"numberOfEntities": 10
}
Override the selected version
{
"sourceEnvironmentName": "TAR1",
"targetEnvironmentName": "TAR1",
"taskGlobals": {
"EMAIL": "john123@gmail.com"
},
"dataVersionExecId": 10
}
{
"entitieslist": "1,2,4,9,8,11,33",
"sourceEnvironmentName": "TAR1",
"taskGlobals": {
EMAIL": "john123@gmail.com"
},
"dataVersionRetentionPeriod": {
"unit": "Days",
"value": "10"
},
"executionNote": "Snapshot 1"
}
{
"result":[{"Number of entity":"The number of entities exceeds the number of entities in the write permission","selectionMethod":"The User has no permissions to run the task's selection method on the task's target environment"}],
"errorCode":"FAIL",
"message":"validation failure"
}
{
"result":
[{"reference": "The user has no permissions to run tasks on Reference tables on source environment",
"syncMode": "the user has no permissions to ask to always sync the data from the source." } ],
"errorCode": "FAIL",
"message": "validation failure"
}
The test connection runs when the forced input parameter is set to false.
{"errorCode":"FAIL","message":"The test connection of [CRM_DB] failed. Please check the connection details of target environment TAR"}
{
"result": {
"taskExecutionId": 43
},
"errorCode": "SUCCESS",
"message": null
}