Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  User Defined oAuth

    Posted 03-15-2024 17:20
    No replies, thread closed.

    I am following the document "How to use the User Defined (OAuth) credential type" to create a data action, which is trying to send a request to serviceNow with oAuth. I referred the serviceNow doc here. I tested the serviceNow api with postman, which works fine. But whatever I have tried in Genesys Cloud Integration Data Action, I keep getting the following errors

    {
      "message": "There was an issue validating the credentials.",
      "code": "invalid.credentials",
      "status": 400,
      "entityName": "basicAuth",
      "messageParams": {},
      "contextId": "4c8f8374-90a2-453f-8b43-343c150da2c5",
      "details": [
        {
          "errorCode": "ACTION.AUTHENTICATION"
        }
      ],
      "errors": [
        {
          "message": "Failed validation with credentialType: basicAuth due to error: 'REST call for action execute failed. Message: Request to backend service failed. To see error details, use test mode to execute the action, or execute request in Postman or other REST tools. [4c8f8374-90a2-453f-8b43-343c150da2c5]'",
          "code": "INVALID_CREDENTIALS",
          "status": 401,
          "messageParams": {},
          "details": [],
          "errors": []
        }
      ]
    }

    Does anyone have any ideas? Thanks!


    #Integrations

    ------------------------------
    Julie Chen
    Science Application International Corporation
    ------------------------------


  • 2.  RE: User Defined oAuth
    Best Answer

    Posted 03-16-2024 21:50
    No replies, thread closed.

    So, first you need to download the ServiceNow Data Actions integration: Genesys AppFoundry - ServiceNow - Custom Data Actions (mypurecloud.com)

    Then in the Integration, enter your Oauth credentials and then use the pre-built data actions to vary what you are trying to pull from ServiceNow.



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: User Defined oAuth

    Posted 03-17-2024 09:31
      |   view attached
    No replies, thread closed.

    Thank you Robert, I downloaded the ServiceNow Data Action you mentioned above, but I still got the same error. Please see the attachment.



    ------------------------------
    Julie Chen
    Science Application International Corporation
    ------------------------------

    Attachment(s)

    docx
    user_defined_oAuth.docx   122 KB 1 version