Genesys Cloud (formerly PureCloud)

Discussion Thread View
Expand all | Collapse all

Microsoft Teams API calls through data actions

  • 1.  Microsoft Teams API calls through data actions

    Posted 23 days ago
    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

    Top 25 Contributor
    Posted 23 days ago
    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

    NEW MEMBER
    Posted 9 days ago
    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
    ------------------------------