Hi,
I'm using a data action to open an url and saves in a variable te result of that url ( it's a json file) In the ui this works well, but in a workflow flow doesn't works.
This is the Data action .
{
"name": "3.1.1 TranscriptMessages - Oauth - Exported 2024-05-08 @ 11:17",
"integrationType": "custom-rest-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "${input.url}",
"requestType": "GET",
"headers": {
"clientId": "xxxxxxxxx",
"clientSecret": "xxxxxxxx",
"loginUrl": "https://login.mypurecloud.de/oauth/token"
},
"requestTemplate": "${input.rawRequest}"
},
"response": {
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "{\"raw_json\": \"$esc.jsonString(${rawResult})\"}"
}
},
"contract": {
"input": {
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"additionalProperties": true
}
},
"output": {
"successSchema": {
"type": "object",
"properties": {
"raw_json": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"secure": false
}
What can be wrong?
BR