Code Monkey home page Code Monkey logo

Comments (11)

tracyboehrer avatar tracyboehrer commented on June 2, 2024 2

@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.

ChetanSharma-msft avatar ChetanSharma-msft commented on June 2, 2024

Hello @ceciliaavila - Could you please share the update or ETA for this issue?

from botbuilder-js.

tracyboehrer avatar tracyboehrer commented on June 2, 2024

@ChetanSharma-msft Did you happen to record what Activity is arriving at the bot?

from botbuilder-js.

ChetanSharma-msft avatar ChetanSharma-msft commented on June 2, 2024

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.

tracyboehrer avatar tracyboehrer commented on June 2, 2024

@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.

tracyboehrer avatar tracyboehrer commented on June 2, 2024

@ChetanSharma-msft Did you set the proper validDomains in the Teams manifest?

from botbuilder-js.

ChetanSharma-msft avatar ChetanSharma-msft commented on June 2, 2024

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.

tracyboehrer avatar tracyboehrer commented on June 2, 2024

@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.

ChetanSharma-msft avatar ChetanSharma-msft commented on June 2, 2024
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.

ChetanSharma-msft avatar ChetanSharma-msft commented on June 2, 2024

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.

tracyboehrer avatar tracyboehrer commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.