Teams presence update to "In a Call

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

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

--Jason

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]

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?

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

--Jason

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.REMOTE_ENDPOINT"
}
],
"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": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
But it’s working fine with Available/Available or Away. DoNotDIsturb/Presenting.

Regards

Looks like someone else reported a similar problem this year:

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

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