Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Microsoft Teams API calls through data actions

    Posted 04-15-2021 03:54
    Hi All,

    Looking for some assistance with the Microsoft Teams API that is available within Genesys Cloud. 

    /api/v2/users/{userId}/presences/microsoftteams

    I have been doing some testing and all works fine through the API Explorer in the Developer Centre, allowing me to pass in a users ID and return back the presence. However, I would like to incorporate this into a data action, similar to the out of the box data action for checking the Genesys Cloud user presence. I have replicated the API call and when testing I receive an error message

    • REST call for action execute failed. Message:Request to backend service failed. Response from web service: {"message":"Session not available, new authorization code must be defined!","code":"bad.request","status":400,"details":[],"errors":[]} [b8e235d4-2b6b-4be0-9188-d44d3a0aa2cd]
    Any ideas??

     


    #Integrations

    ------------------------------
    Gareth James
    CALLSCAN AUSTRALIA PTY. LTD.
    ------------------------------


  • 2.  RE: Microsoft Teams API calls through data actions

    Posted 04-15-2021 11:21
    I think it is because the Data Action OAuth cannot be related to a Teams user and cannot see into the Teams directory, so will not come back with the presence.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Microsoft Teams API calls through data actions

    Posted 04-29-2021 06:35
    Hi Gareth,

    Instead of GC API you can try to use direct Microsoft Graph API as well.

    ------------------------------
    Taras Buha
    taras@noralogix.com
    www.noralogix.com
    ------------------------------



Need Help finding something?

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