Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  error data action

    Posted 03-22-2024 18:44
    Edited by Rihab BEN MALEK 03-22-2024 18:47

    hello,

    I try to configure a data action to get data from webservice developped on a third party web server but I have alwyas this error :

    {
      "message": "The URL for a PureCloud action is required to start with '/api/' because the domain of your PureCloud region will always be added to the front of the URL. The URL resolved to [https://xxx.domain.fr/yyyy/ReadData/Get/VillesList/Paris]",
      "code": "bad.request",
      "status": 400,
      "messageParams": {},
      "contextId": "ef9fff60-be07-4dfc-ae59-81e447d083c8",
      "details": [
        {
          "errorCode": "ACTION.PROCESSING"
        }
      ],
      "errors": []
    }

    what should I put in Request URL Template ? I have put : https://xxx.domain.fr/yyyy/ReadData/Get/VillesList/${input.NomVille}
    I tried to test with and without adding action Contracts but I have the same result

    thanks


    #Integrations

    ------------------------------
    Rihab BEN MALEK
    Teleperformance France SA
    ------------------------------



  • 2.  RE: error data action

    Posted 03-23-2024 16:16

    You're using the wrong integration for that.  This is the one you're looking for:



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 3.  RE: error data action

    Posted 03-25-2024 11:29

    Hello, 

    thank you for your response . I've missed this :)

    now I have another error despit I've set up OAuth credentials : 

    {
      "message": "Substitution values invalid in action config. Reference ${credentials.loginUrl} evaluated to null when attempting to render at UrlTemplate[line 1, column 1]  A common reason for this error is needing to prepend the variable with 'input.' or 'credentials.'",
      "code": "invalid.substitution",
      "status": 400,
      "messageParams": {},
      "contextId": "43476add-4523-483b-a582-743c1bc54fec",
      "details": [
        {
          "errorCode": "ACTION.PROCESSING"
        }
      ],
      "errors": []
    }


    ------------------------------
    Rihab BEN MALEK
    Teleperformance France SA
    ------------------------------



  • 4.  RE: error data action

    GENESYS
    Posted 03-26-2024 17:17

    Hello Rihab, 

    It says your need to prepend input or credentials at the beginning of your variables.  Example: ${input.credentials} 

    The error is because your ${credentials.loginUrl} was empty or null. 



    ------------------------------
    Carlos Albor
    Senior Principal PS Consultant
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources