Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  I wondering about the Custom Data Integration using Web Service with azure 3rd party API

    Posted 11-12-2022 10:40
    Edited by Saravanakumar sakthivel 11-12-2022 10:58
    No replies, thread closed.
    Hi Team, 
    I created a Web service using user defined credential type to get a token from azure and pass the token to my custom action created using the same integration.
    I am able to generate the token successfully as below 

    Now after I got success in the above I'm going to create another data action to fetch data from the endpoint API or update the endpoint for this action it will ask me to pass two parameters (Token_type, Token_access) my question is how I can pass this parameter from the "Custom Auth Data Action "

    as per the documentation How to use the User Defined (OAuth) credential type - Genesys Cloud Resource Center
    In step 3 it is mentioned - The header of the custom action request includes the authorization. authResponse is a static keyword. token_type and access_token are the values returned from the web service
    So I am adding - The header  "Authorization": "${authResponse.token_type} ${authResponse.access_token}", While testing the custom data_action is through error as below. 
    {
    "message": "No authentication bearer token specified in authorization header.",
    "code": "authentication.required",
    "status": 401,
    "messageParams": {},
    "contextId": "869a5ae7-616f-42dc-9af2-ccf4acb83d2f",
    "details": [
    {
    "errorCode": "ACTION.REMOTE_ENDPOINT"
    }
    ],
    Why I am not getting the ${authResponse.token_type} ${authResponse.access_token}"? If I hard code the token is working fine. but I can't because the token is valid for 1 hour only. 

    Can you suggest to me where this is going wrong?
    #Integrations

    ------------------------------
    Saravanakumar sakthivel
    Accenture Solutions Private Limited
    ------------------------------


  • 2.  RE: I wondering about the Custom Data Integration using Web Service with azure 3rd party API

    Posted 11-13-2022 21:06
    No replies, thread closed.
    Hi 

    did you use "custom auth action" you created in authentication? I added "authResponse.access_token" to header to pass the access token to the action. 

    Regards,
    Zhang Chengcheng

    ------------------------------
    Chengcheng Zhang
    FIL Fund Services (Bermuda) Limited
    ------------------------------



  • 3.  RE: I wondering about the Custom Data Integration using Web Service with azure 3rd party API

    Posted 11-13-2022 21:31
    No replies, thread closed.
    Yes, I can see my authentication in the custom_acction. 



    ------------------------------
    Saravanakumar sakthivel
    Accenture Solutions Private Limited
    ------------------------------



  • 4.  RE: I wondering about the Custom Data Integration using Web Service with azure 3rd party API

    Posted 11-14-2022 09:26
    No replies, thread closed.
    Hello @Saravanakumar sakthivel, you may find the first half of this Development Blueprint helpful for your purposes stated above. 

    https://developer.genesys.cloud/blueprints/update-ms-teams-presence-from-inbound-interaction-trigger-blueprint/

    Regards,
    Jason Wolfgang
    Genesys Cloud Product Manager​

    ------------------------------
    Jason Wolfgang
    Genesys - Employees
    ------------------------------



  • 5.  RE: I wondering about the Custom Data Integration using Web Service with azure 3rd party API

    Posted 11-15-2022 07:48
    No replies, thread closed.
    Hi Jason - the issue has been resolved, the configuration we are doing it via Cx-As-Code. once we deleted the base 64 encodings it started passing the value. 
    Although we did this before as well not worked this time it was working and all good now.

    ------------------------------
    Saravanakumar sakthivel
    Accenture Solutions Private Limited
    ------------------------------