Complete Tasks Initiated by Object Data
# Description
Complete tasks initiated by object data.
# Request Specification
Request Method: POST + application/json
Request Path: https://${Cloud Domain}/cgi/crm/v2/special/task/updateDataAndCompleteTask?thirdTraceId=${Random String}
Request Headers: Refer to Common Parameters
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | |
| taskId | String | Yes | Task instance ID |
| entityId | String | Yes | CRM object apiName |
| objectId | String | Yes | CRM object data ID |
| data | Map | No | Field values to modify |
# Request Example
{
"data": {
"data": {
"field_9B1wt__c": 1600045915000,
"field_Dc51s__c": 1602637915000,
"field_xV3Zw__c": "646546546"
},
"entityId": "AccountObj",
"taskId": "5f68c4b68c0f3100014611e0",
"objectId": "5eb2d3ea909a7a000118db8"
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | View Error Codes |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the
messagefield in the response for logical judgment, aserrorMessagemay change.