Comments (11)
@ceciliaavila Evaluate whether this is a sample or SDK issue. It will need to be transferred to the Teams repo if a sample issue.
from botbuilder-js.
Hello @ceciliaavila - Could you please share the update or ETA for this issue?
from botbuilder-js.
@ChetanSharma-msft Did you happen to record what Activity is arriving at the bot?
from botbuilder-js.
Hello @tracyboehrer - Nothing is happening on the bot side. even there is no call in the network trace and no error in the console.
from botbuilder-js.
@ChetanSharma-msft If an Activity isn't arriving in response to a Submit, this isn't a BF SDK issue. You aren't seeing anything sent to the bot at all?
from botbuilder-js.
@ChetanSharma-msft Did you set the proper validDomains in the Teams manifest?
from botbuilder-js.
Hello @tracyboehrer - All other methods/events are calling properly related to ME.
Please refer all the methods/events mentioned here: https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/msgext-action-preview/csharp/Bots/TeamsMessagingExtensionsActionPreviewBot.cs
Except this event: OnTeamsMessagingExtensionCardButtonClickedAsync
all other events are calling properly.
Note: This sample was part of bot-builder repo only and later we moved to Microsoft-Teams-Samples repo.
from botbuilder-js.
@ChetanSharma-msft When I run the sample, the bot receives an Invoke Activity, of name "composeExtension/submitAction". In order for the OnTeamsMessagingExtensionCardButtonClickedAsync to get called, it must be "composeExtension/onCardButtonClicked".
from botbuilder-js.
Bot.Message.Preview.App.Testing-20240215_112857-Meeting.Recording.mp4
Hello @tracyboehrer - Could you please refer the recorded video?
I think you have tried it with just async onInvokeActivity(context)
method. Could you please share the steps or short video?
If we have multiple events added, how are we going to handle it?
from botbuilder-js.
Hello @tracyboehrer - I have investigated the issue further and get to know that this method is working with below steps:
If the adaptive card was added to the compose window (by either the handleTeamsMessagingExtensionSubmitAction or
handleTeamsMessagingExtensionBotMessagePreviewSend handler's return values) the submit values will come in here.
Added response like below:
return {
composeExtension: {
type: "result",
attachmentLayout: "list",
attachments: [adaptiveCard],
},
};
But if we send it like, it is not working:
var responseActivity = { type: 'message', attachments: [adaptiveCard], channelData: context.channelData };
await context.sendActivity(responseActivity);
It is also not documented here:
https://learn.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/action-commands/respond-to-task-module-submit?tabs=dotnet%2Cdotnet-1#user-attribution-for-bots-messages
I will check with engineering team and update the document accordingly.
from botbuilder-js.
@ChetanSharma-msft If changes are required to the sample, I suggest opening an issue in that repo since this is not an SDK issue.
from botbuilder-js.
Related Issues (20)
- Extensibility for Teams AI - ability to add to User Agent for Teams AI telemetry HOT 3
- Vulnerable recognizers-text-suite is still in use in botbuilder-dialogs HOT 1
- The bot builder framework should support SharePoint bot driven ACEs
- Fix Teams config typings
- scoreThreshold no longer works in 4.17.0 and later HOT 3
- handleTeamsTaskModuleFetch not opening popups on iOS HOT 1
- Can't start basic Echo bot HOT 2
- Microsoft.HttpRequest does not support HEAD method
- Security Alert: lodash.trimend vulnerability in botbuilder-dialogs HOT 1
- "handleTeamsMessagingExtensionBotMessagePreviewSend" method not hitting in my code. HOT 5
- UserAssignedIdentity(WorkloadIdentity) auth fails with 'scope https://api.botframework.com is not valid' HOT 5
- ChannelAccount cannot accept extensible properties
- Content Type is not set on uploaded blobs
- replyToId not part of token response of oauthprompt HOT 12
- @azure/msal-node and @azure/msal-browser versions are deprecated (both have new major versions)
- Add support for isVisible property in SharePoint Bot Adaptive Card Extension
- 'yarn' command not found while installing 'botbuilder-dialogs' HOT 2
- Cannot catch MemberNotFoundInConversation error when calling getConversationPagedMembers HOT 7
- port: Add zh-cn to supported locales HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-js.