Oct 27 2021 05:55 AM - edited Oct 27 2021 06:38 AM
Hi.
Link Unfurling ... C# (NET Core 3.1)
I added "Link Unfurling" functionality to my application (& Bot). Than I can select any chat ("My User"-"User1"), insert link and send Adaptive Card. The Adaptive Card contains "Add" ("type": "Action.Submit") button.
"User1" can see the Adaptive Card and can press the button but He recieves "Something went wrong. Make sure you've successfully added the app." message. He installed the Application seccessfully and can use the button from his "Bot-User" chat (Card that was addressed for him) but can't use it if a different user sent the card (the same story with copy/paste the card to "User1") .
I can click the "Add" button in "My User-User1" chat and the action handles seccessfully but "User1" can't do it.
Bot:
"scopes": ["personal"]
How we (Bot) can handle the action?
Oct 27 2021 08:09 AM
Oct 27 2021 08:22 AM - edited Oct 27 2021 08:52 AM
Right. ... Or ... What kind of handler should I add?
"My User" sent a card using link Unfurling functionality to "User1" ("My User-User1" chat)
"My User-User1" chat, link Unfurling, Adaptive Card, Button Action ("type": "Action.Submit"): It works for me. Bot handles the action.
"My User-User1", link Unfurling, Adaptive Card, Button Action ("type": "Action.Submit"): "User1" can't use the button of Adaptive Card: "Something went wrong. Make sure you've successfully added the app." On Bot side I can't see any activity,
Oct 28 2021 01:30 AM
Could you please share the sample which you are referring to so that we can repro at our end?
Oct 28 2021 03:45 AM
55.teams-link-unfurling.zip
Link for query: https://you_domain/item/index?id=190237271
"User1" receives the following :
But bot handles my action.
Oct 28 2021 04:37 AM - edited Oct 28 2021 04:41 AM
I updated APP manifest a little bit
Link unfurling: https://linkunfurlingsite.com/item/index?id=4
Oct 29 2021 01:37 AM
Thanks for sharing the details.We are checking on it.We will update you.
Nov 03 2021 05:58 AM
We have tried the sample.You have not added the permissions in manifest file.After adding the permissions we following result when user1 click the action.submit.
and user1 also use the button now.
Thanks,
Nivedipa
------------------------------------------------------------------------------------------------------------------------
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.
Nov 04 2021 05:26 AM
Nov 07 2021 10:15 PM - edited Nov 07 2021 10:16 PM
Could you please add permissions block in project manifest file.
"permissions": [
"identity",
"messageTeamMembers"
]
Thanks,
Nivedipa
------------------------------------------------------------------------------------------------------------------------
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.
Nov 08 2021 08:54 AM
Nov 09 2021 11:27 PM - edited Nov 09 2021 11:28 PM
Is your issue resolved with above suggestion? Or still you need any help.