Hi, I am trying to create data action to update data table.
I followed Help updating data table via Data Action - Data Actions - Genesys Cloud Developer Forum and created a da table with two columns and it worked.
when I created another data table with four columns and modified the data action its giving below error. can some one provide guidance on what mistake I am doing here.
{
"name": "Update DataTable - Exported 2024-04-29 @ 20:55",
"integrationType": "purecloud-data-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "/api/v2/flows/datatables/datatableid/rows",
"requestType": "POST",
"headers": {
"Content-Type": "application/json"
},
"requestTemplate": "{\n "InteractionID": ${input.InteractionID},\n "UserID": ${input.UserID},\n "UserName": ${input.UserName},\n "Queue": ${input.Queue}}"
},
"response": {
"translationMap": {
"InteractionID": "$.[InteractionID]",
"UserID": "$.[UserID]",
"UserName": "$.[UserName]",
"Queue": "$.[Queue]"
},
"translationMapDefaults": {},
"successTemplate": "{"InteractionID": ${input.InteractionID},"UserID": ${input.UserID},"UserName": ${input.UserName},"Queue": ${input.Queue}}"
}
},
"contract": {
"input": {
"inputSchema": {
"title": "Interaction Details",
"type": "object",
"properties": {
"InteractionID": {
"type": "string"
},
"UserID": {
"type": "string"
},
"UserName": {
"type": "string"
},
"Queue": {
"type": "string"
}
},
"additionalProperties": true
}
},
"output": {
"successSchema": {
"title": "Interaction Details",
"type": "object",
"properties": {
"InteractionID": {
"type": "string"
},
"UserID": {
"type": "string"
},
"UserName": {
"type": "string"
},
"Queue": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"secure": false
}
Error Message:
Execute: The request could not be understood by the server due to malformed syntax.
- REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"message":"'' is too short\n\nFailed validating 'minLength' in schema['properties']['key']:\n {'$id': '/properties/key',\n 'displayOrder': 0,\n 'maxLength': 256,\n 'minLength': 1,\n 'title': 'InteractionID',\n 'type': 'string'}\n\nOn instance['key']:\n ''","code":"flows.datatables.schema.exception","status":400,"messageParams":{},"contextId":"datatableid","details":[],"errors":[]} [f221f1ae-b9d6-494e-9ec5-fa05877b8fb5]