Jump to content

What is "Chat ID" in MicrosoftTeamsChatSendMessage


Recommended Posts

@QEHNick Chat ID is the ID of the 1-2-1 chat session with a user. This operation is used to send messages to private chat sessions rather than group channels. Private chat sessions can be created with the Chat > Create Chat operation, which outputs an ID that you can use in the Chat > Send Message operation (below).  If a one to one chat already exists between the account that the Teams integration is using, and the target user, the Chat ID of the existing chat will be returned.

image.png

Hope this helps,

Steve

Link to comment
Share on other sites

Oh, how silly of me. I didn't realise the process was split into two parts.

So the User ID is which customer field? Would it be their primary email address or their actual "User ID"

Link to comment
Share on other sites

Ok, so now it's all set up, however, testing produces the following.

When creating the chat session:

ID =
Status = failed
Error = BadGateway: Failed to execute backend request.

When attempting to send the message:

ID =
Status = failed
Error = BadRequest: UnknownError

 

Is there anywhere I can dig further to analyse these Timeline outputs?

Link to comment
Share on other sites

OK, it now works (after changing it to use the Primary email address instead of the User ID - oddly they are both the same, but the BP refused to read the User ID) - the only problem is, instead of sending the chat to the User ID, it sends it to the team member who set up the connector.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...