Closed cschreiberBES closed 3 years ago
This happens because the entire message persists, including the text, title, buttons, etc.
The addLinkButton appends a new button instead of replacing it.
You don't see the same behavior with the other elements, because they are simply overwritten.
The connector card object represents a message, not a connection. You should create a new one for every message you send.
Thanks @rveachkc for the help! I will give that a try.
Hello,
I have a function that sends a message to a MS Teams channel every time it is called. The first call, the message sends correctly and only contains 1 button. Every time the function is called after that, another button gets added to the message.
My Function:
Expected behavior I expect that, for every message sent, only one button displays on the message.
Screenshots
Please let me know if this is a genuine bug, or I am just missing something.
Thank you!