Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  3rd party API integration and custom auth data action

    Posted 06-16-2025 21:07

    Facing an issue with 3rd party custom auth data action. Same inputs used in postman and is working. Data action test execution results are 

    {
      "message": "The request could not be understood by the server due to malformed syntax.",
      "code": "bad.request",
      "status": 400,
      "messageParams": {},
      "contextId": "a7ed48f0-7210-43f2-aad8-dd5b15461fb9",
      "details": [
        {
          "errorCode": "ACTION.REMOTE_ENDPOINT"
        }
      ],
      "errors": [
        {
          "message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\"error\":\"invalid_request\",\"error_description\":\"AADSTS90014: The required field 'scope' is missing from the credential. Ensure that you have all the necessary parameters for the login request. Trace ID: 00c58dfb-d5f2-4a88-ae2b-6a18753e4900 Correlation ID: cc3638f8-9116-4745-9021-40fab33141ec Timestamp: 2025-06-17 01:03:21Z\",\"error_codes\":[90014],\"timestamp\":\"2025-06-17 01:03:21Z\",\"trace_id\":\"00c58dfb-d5f2-4a88-ae2b-6a18753e4900\",\"correlation_id\":\"cc3638f8-9116-4745-9021-40fab33141ec\",\"error_uri\":\"https://login.microsoftonline.com/error?code=90014\"} [a7ed48f0-7210-43f2-aad8-dd5b15461fb9]",
          "code": "BAD_REQUEST",
          "status": 400,
          "messageParams": {},
          "details": [],
          "errors": []
        }
      ]
    }

    #DataActions
    #Integrations

    ------------------------------
    Sukhjinder Brar
    Principal Consultant
    ------------------------------


  • 2.  RE: 3rd party API integration and custom auth data action

    Posted 06-17-2025 07:06

    Hi,

    Sounds like you don't have "scope" defined in your Data Action.

    For example with Graph API you'll need to use the "scope" returned from the Authentication in your request, along with the "grant_type"

    scope=${credentials.scope}&grant_type=${credentials.grant_type}


    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



  • 3.  RE: 3rd party API integration and custom auth data action

    Posted 06-17-2025 07:12

    Hi 

    Thanks Jan. It is corrected and working.

    Regards

    Sukhjinder



    ------------------------------
    Sukhjinder Brar
    Principal Consultant
    ------------------------------