Adding bot app to chat doesn't work, but works on Teams channel.

Lukasz Lukjanowicz 0 Reputation points
2023-06-28T10:52:23.8133333+00:00

First issue:
We are using https://learn.microsoft.com/en-us/microsoftteams/platform/resources/messaging-extension-v3/create-extensions?tabs=typescript#request-to-install-your-conversational-bot
to add bot to conversation in case it's not added and we need to do an action, eg. show task window. It works on Teams channels, but won't work on private channels.

In both cases we are sending a response:

  return <TaskModuleResponse> {
    task: {
      type: 'message',
      value: ''
    }
  }

In Teams channels card disappears and bot is added to the channel, but in case of private chats, after we click button to add the app, card becomes blank and app is not added to the chat.

It worked some time ago for us (around a month ago).

Second issue somehow connected with first one:
When using a button with Action.Execute inside adaptive card in private channel, we are getting this error in Chrome Network devtools:

{
"errorCode": 0,     
"message": "Invoke validation failed. User forbidden to perform action",     "standardizedError": {
	"errorCode": 209,
	"errorSubCode": 1,
	"errorDescription": "Invoke validation failed. User forbidden to perform action"
	} 
}

but no error is send back to our app, so we can't react to it (eg. show "Add bot to chat" modal"). It doesn't throw any errors and works correctly when I add the app manually to chat.

Microsoft Teams Development
{count} votes

2 answers

Sort by: Most helpful
  1. Lukasz Lukjanowicz 0 Reputation points
    2023-07-06T13:03:10.98+00:00

    Hello, I've created recordings for both issues,
    First https://share.alation.com/link/A18cE7ME4XMg1dQkH5QSeF:

    Second https://share.alation.com/link/vMsNLCvtoIFQN59KBT6hkF:

    • Mark as resolved button is of type "Action.Execute", after clicking it we are getting 403 error, which I can't even react to in the app.
    0 comments No comments

  2. Sayali-MSFT 3,991 Reputation points Microsoft External Staff Moderator
    2023-08-23T10:34:02.3066667+00:00

    @@Lukasz Lukjanowicz- This issue has been fixed. Adaptive card in Ms Teams now returns input field data using Action.Execute.
    Tested in MS Teams desktop (Microsoft Teams Version 1.6.00.20958) and web client.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.