WebService Data Action in Workflow

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

Are you saying that this works in the Data Action test UI, but does not work when run in an architect flow?

If that is the case my first guess would be that part of the URL that is being passed into the data action needs URL escaping.

--Jason

Hi,
Yes in the UI works OK.

I'm developing a workflow that executes 3 data actions, this one is the last.

This is the structure

  1. Data action to obtain data from conversationID.
  2. Data action to get the url.
  3. Data action to get the info of the url and save it into variable.

I made some tests,

If i use variables to invoke the next Data Action fails in the 3 data action.
If i use literal values on the second data action agains te variables of the result of the 1st data action ,works ok, the 3rd data action works ok and saves the url into a variable.

I don't know what happens because in the configuration of the 2 data action i configured the success result as string that its the same a literal value to invoke the Data Actions.

Any suggestion?

Thnks
BR.

Hi Again

I have a problem with one of the Data Actions, now its solverd and all works as expected.

Thanks!