Forum Discussion
Adaptive Card, Copy/Paste/Share functionality
- Oct 22, 2021
Paul_By - As per my understanding, we do not have a way to update the adaptive card send through "Messaging Extension/Link Unfurling" but we can update/refresh the normal adaptive card sent through turnContext.SendActivityAsync() via message reference id/conversation id.
Thanks,
Chetan Sharma
----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "Mark as Best Response" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
Thank you.
Maybe ... Are there any ways to send adaptive card from outside (Azure function) that will be (look) like "Messaging Extension/Link Unfurling" message?
Link Unfurling - I found that card-link is cached. Can I generate a new one or swith off the cache (or update the cache) ?
And ... Could you answer on question 3) ("BotNotInConversationRoster"), please? What about copied (or sent via MessagingExtension, unfurling for example ) Adaptive Card actions ... If I try to UpdateActivityAsync(...) I'll receive "Operation returned an invalid status code 'Forbidden'" exception. How can I update Card of MessagingExtension by Messaging Extension Card Button Click? Can I update/delete card of "Messaging Extension/Link Unfurling" message?
- Nivedipa-MSFTOct 21, 2021
Microsoft
For Question 3 - Can you confirm that you have uploaded bot for organization or for yourself?
For UpdateActivityAsync(...) - Could you share the repro steps?As far as I understand you have sent a card using messaging extension and now you are trying to update it with the same card.- Paul_ByOct 22, 2021Brass Contributor"uploaded bot for organization or for yourself?"
What do you mean? I can say that I installed it to myself. (Chat Bot - User).
Any differences?
Also. I can confirm that I added additional scopes like "Team & Group Chat", add it to Group Chat (User1- User 2 - Bot) and in that case I can update Adaptive Card using UpdateActivityAsync(...) but .. In general ... What about messages (with Adaptive Card) that I send using "Messaging Extension/Link Unfurling". Can I update it after card action? I mean private chat (User - Bot) and external Chat (User - User)?- ChetanSharma-msftOct 22, 2021
Microsoft
Paul_By - As per my understanding, we do not have a way to update the adaptive card send through "Messaging Extension/Link Unfurling" but we can update/refresh the normal adaptive card sent through turnContext.SendActivityAsync() via message reference id/conversation id.
Thanks,
Chetan Sharma
----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "Mark as Best Response" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.