Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Configure WSDA to connect to Salesforce

    Posted 10-03-2023 01:32
    No replies, thread closed.

    I am trying to connect to Salesforce from our Genesys instance in order to pull back customer accounts on an ANI match.  This is working in Postman currently with an Authorization Code grant type, which will create a browser prompt for my service username and password to generate the token (clientID and secret already configured in the Postman request).  When I try to implement this in Genesys, I built the WSDA with the loginUrl equal to the access_token_url in Postman, and clientId and clientSecret equal to what is working in Postman.  I get the below error: 

    • REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"error":"invalid_grant","error_description":"no client credentials user enabled"} [4cea3973-afd5-4d93-ae7d-c24caa980ef2]

    Do I need to add any fields to account for the service account username and password?  Or do I need to use something other than the WSDA (the Salesforce action requires a token, which I am trying to generate with this WSDA but not sure I am doing this correctly)?  Do I need to change the headers or request body?  Thank you for any help you can provide!


    #Integrations

    ------------------------------
    Maureen Shaw
    Helpware Inc
    ------------------------------


  • 2.  RE: Configure WSDA to connect to Salesforce

    Posted 10-06-2023 16:30
    No replies, thread closed.

    Are you using the official Genesys integration, or attempting to "roll your own"? I'm no expert with the SF stuff, but it sounds to me like it's to do with the way you have the credentials set up in Salesforce.



    ------------------------------
    Paul Simpson
    Eventus Solutions Group
    ------------------------------



  • 3.  RE: Configure WSDA to connect to Salesforce
    Best Answer

    Posted 10-07-2023 02:12
    No replies, thread closed.

    Figured it out! With the help of this post (https://developer.genesys.cloud/forum/t/salesforce-data-action-to-use-oauth-2-0/13871) except for the grant type, which I set to password.  I was able to test this out in Postman first (breaking it out into 2 steps to get the token and then make request instead of all in one with the browser pop/client credentials type like I was originally doing it in Postman in order to bypass that browser pop step).  Thank you for your response.



    ------------------------------
    Maureen Shaw
    Helpware Inc
    ------------------------------