Legacy Dev Forum Posts

 View Only

Sign Up

Teams presence update to "In a Call

  • 1.  Teams presence update to "In a Call

    Posted 06-05-2025 18:45

    elenancker | 2023-12-01 08:53:22 UTC | #1

    Hello, the data action to update teams presence with a trigger is working fine with Available and Do Not Disturb, but fails with In a Call, how can I fix this? thanks a lot


    Jason_Mathison | 2023-12-05 16:29:11 UTC | #2

    Can you provide additional information about what you are trying to do, and what error, if any, you are getting back?

    --Jason


    elenancker | 2023-12-06 08:30:52 UTC | #3

    Hi Jason currently we use a trigger and a workflow to update teams presence status when an agent accept an interaction (incoming call) the trigger goes to a workflow, using userID to send a querry to teams, teams replies with Teams UserID, then we use another data action to change teams status to "Do Not DIsturb". this is working fine. The customer wants teams status to be changed to "In a Call" instead of "Do Not Disturd". but the data action fails. Error message: 7. Execute: The request could not be understood by the server due to malformed syntax.

    • REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"error":{"code":"InvalidArgument","message":"The provided availability/activity is invalid.","innerError":{"request-id":"61c146fe-80d6-449e-b9f8-c1cf9bdd3fda","date":"2023-12-06T08:29:57","client-request-id":"61c146fe-80d6-449e-b9f8-c1cf9bdd3fda"}}} [b355c693-d2bc-4d4f-9b00-74d909eb140c]

    Jason_Mathison | 2023-12-06 18:00:33 UTC | #4

    To make sure I understand, are you setting user's Microsoft Teams status via the Microsoft Graph API?

    Have you tried the status combinations documented here? https://learn.microsoft.com/en-us/graph/api/presence-setpresence?view=graph-rest-1.0&tabs=http

    Are you able to set the users status with a tool like postman, but the same request is failing in data actions?

    --Jason


    elenancker | 2023-12-08 08:46:21 UTC | #5

    Hi Jason,

    Yes we did with

    Availability : Busy Activity: InACall

    Here is the result

    "message": "The request could not be understood by the server due to malformed syntax.", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "3c810a85-5556-47f3-b0ed-cd6c064b2180", "details": [ { "errorCode": "ACTION.REMOTEENDPOINT" } ], "errors": [ { "message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\"error\":{\"code\":\"InvalidArgument\",\"message\":\"The provided availability/activity is invalid.\",\"innerError\":{\"request-id\":\"23f90a9a-ff1d-4618-b5a1-8dabfcaaff28\",\"date\":\"2023-12-08T08:41:21\",\"client-request-id\":\"23f90a9a-ff1d-4618-b5a1-8dabfcaaff28\"}}} [3c810a85-5556-47f3-b0ed-cd6c064b2180]", "code": "BADREQUEST", "status": 400, "messageParams": {}, "details": [], "errors": [] } ] } But it’s working fine with Available/Available or Away. DoNotDIsturb/Presenting.

    Regards


    Jason_Mathison | 2023-12-08 13:59:48 UTC | #6

    Looks like someone else reported a similar problem this year: https://learn.microsoft.com/en-us/answers/questions/875684/presence-status-of-user-is-not-setting-using-graph?page=2#answers

    As this is an issue with a 3rd party's API, there really isn't much else we can do for you on this forum. You would need to use a Microsoft support option to continue to work this issue.

    --Jason


    system | 2024-01-08 14:00:36 UTC | #7

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 23444