Hi there,
I'm trying to get to understand the Data Actions feature, so I created a very simple one. The idea is that with the contactlist ID i fetch the name of that contact list.
But somehow I keep getting the error below:
{
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "c327948b-2639-472c-bbdf-bcfd6da60519",
"details": [
{
"errorCode": "ACTION.PROCESSING"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message:requestUrlTemplate could not be resolved into a fully qualified URL. [c327948b-2639-472c-bbdf-bcfd6da60519]",
"code": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Input Contract:
{
"title": "Contact Lists Request",
"description": "Requests contact lists",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"required": [
"id"
],
"properties": {
"id": {
"description": "The Contaclist ID",
"type": "string"
}
},
"additionalProperties": true
}
Output Contract
{
"title": "Contact Lists Response",
"description": "Returns contact lists",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"name": {
"description": "The name of the contactlist",
"type": "string"
}
},
"additionalProperties": true
}
Configuration Request
{
"requestUrlTemplate": "/api/v2/outbound/contactlists/{input.id}",
"requestType": "GET",
"headers": {
"Content-Type": "application/json"
},
"requestTemplate": "{\"id\": \"{input.id}"}"
}
Configuration Responset
{
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}
Thanks in advance,
BR,
Rob