[MS Teams] PostBack not working in Microsoft Teams
In Microsoft Teams button postback is not working. So can i know when this available for Microsoft Teams
@Malith1994124 are you using C# or Node SDK?
Postback is not supported in Teams. We do support imBack and invoke currently.
@nwhitmont um using c#
Microsoft say there are working about this problem in Jan . I want to know when this ia going to avialable.
What is it you're trying to accomplish? Invoke allows you to send a hidden payload like postBack, just doesn't echo anything back to the user. Here's the help section.
@RichMoeMSFT Itz give me an error in Visual studio. Error is ActionTypes does not contain a definition for invoke
@RichMoeMSFT Invoke is not in microsoft bot builder (https://github.com/Microsoft/BotBuilder/blob/botbuilder%403.2.1/CSharp/Library/Microsoft.Bot.Connector/ActionTypes.cs)
I see the confusion: invoke is not an ActionType, it is an ActivityType - it's not an action in a message, it's a completely different activity altogether. You can set the Type = "invoke" in your constructor (or ActionTypes.Invoke), and you'll need to check for ActivityType=invoke in your incoming message parsing (not message.)
I'll clarify in the documentation.
@Malith1994124 Here is the invoke documentation.
@Malith1994124 I am going to close this issue because it seems @RichMoeMSFT has resolved the underlying problem for you. If this is not correct please continue the conversation here and reopen if needed.
@RichMoeMSFT In the link you provided there is no mention of invoke. Can you please provide correct documentation? I am using node.js
@jakubbares check out this link https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bots-cards
Thanks but that did not help. I looked into the code of the library botbuilder to see directly how it is supposed to work. Invoke is no longer part of that library I found. So only option is messageBack which I know how to call but dont know how to catch it when called
I have answered your stack overflow question here https://stackoverflow.com/questions/48442248/how-to-catch-messageback-in-node-js
@JasonSowers any news or ETA about support 'postBack' by MS Teams? thanks.