MSTeams - Link Unfurling. Handle "Action.Submit" action of Adaptive Card from User-to-User chat.

%3CLINGO-SUB%20id%3D%22lingo-sub-2890456%22%20slang%3D%22en-US%22%3EMSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to-User%20chat.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2890456%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3ELink%20Unfurling%20...%3C%2FP%3E%3CP%3EI%20added%20%22Link%20Unfurling%22%20functionality%20to%20my%20application%20(%26amp%3B%20Bot).%20Than%20I%20can%20select%20any%20chat%20(%22My%20User%22-%22User1%22)%2C%20insert%20link%20and%20send%20Adaptive%20Card.%20The%20Adaptive%20Card%20contains%20%22Add%22%20(%22type%22%3A%20%22Action.Submit%22)%20button.%3C%2FP%3E%3CP%3E%22User1%22%20can%20see%20the%20Adaptive%20Card%20and%20can%20press%20the%20button%20but%20He%20recieves%20%3CSTRONG%3E%22Something%20went%20wrong.%20Make%20sure%20you've%20successfully%20added%20the%20app.%3C%2FSTRONG%3E%22%20message.%20He%20installed%20the%20Application%20seccessfully%20and%20can%20use%20the%20button%20from%20his%20%22Bot-User%22%20chat%20(Card%20that%20was%20addressed%20for%20him)%20but%20can't%20use%20it%20if%20a%20different%20user%20sent%20the%20card%20(the%20same%20story%20with%20copy%2Fpaste%20the%20card%20to%20%22User1%22)%20.%3C%2FP%3E%3CP%3EI%20can%20click%20the%20%22Add%22%20button%20in%20%22My%20User-User1%22%20chat%20and%20the%20action%20handles%26nbsp%3Bseccessfully%20but%20%22User1%22%20can't%20do%20it.%3C%2FP%3E%3CP%3EBot%3A%3C%2FP%3E%3CP%3E%22scopes%22%3A%20%5B%22personal%22%5D%3C%2FP%3E%3CP%3EHow%20we%20(Bot)%20can%20handle%20the%20action%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2890456%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2891060%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2891060%22%20slang%3D%22en-US%22%3EPaul_By%20-%20As%20per%20my%20understanding%2C%20you%20are%20sending%20a%20card%20with%20one%20action%20button%20and%20it's%20working%20fine%20for%20you%20from%20a%20other%20person's%20chat%20where%20you%20send%20the%20card%20but%20it's%20not%20working%20for%20other%20user%20correct%3F%3CBR%20%2F%3EIf%20yes%2C%20it%20should%20handle%20the%20request%20for%20other%20user%20as%20well.%3CBR%20%2F%3EWe%20will%20also%20check%20it%20from%20our%20and%20let%20you%20know.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2891128%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2891128%22%20slang%3D%22en-US%22%3E%3CP%3ERight.%20...%20Or%20...%20What%20kind%20of%20handler%20should%20I%20add%3F%3C%2FP%3E%3CP%3E%22My%20User%22%20sent%20a%20card%20using%26nbsp%3Blink%20Unfurling%20functionality%20to%20%22User1%22%20(%22My%20User-User1%22%20chat)%3CBR%20%2F%3E%22My%20User-User1%22%20chat%2C%20link%20Unfurling%2C%20Adaptive%20Card%2C%20Button%20Action%20(%22type%22%3A%20%22Action.Submit%22)%3A%20It%20works%20for%20me.%20Bot%20handles%20the%20action.%3CBR%20%2F%3E%22My%20User-User1%22%2C%20link%20Unfurling%2C%20Adaptive%20Card%2C%20Button%20Action%20(%22type%22%3A%20%22Action.Submit%22)%3A%20%22User1%22%20can't%20use%20the%20button%20of%20Adaptive%20Card%3A%20%22Something%20went%20wrong.%20Make%20sure%20you've%20successfully%20added%20the%20app.%22%20On%20Bot%20side%20I%20can't%20see%20any%20activity%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2894486%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2894486%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1182850%22%20target%3D%22_blank%22%3E%40Paul_By%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20the%20sample%20which%20you%20are%20referring%20to%20so%20that%20we%20can%20repro%20at%20our%20end%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2895064%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2895064%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1183910%22%20target%3D%22_blank%22%3E%40Nivedipa-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E55.teams-link-unfurling.zip%3C%2FP%3E%3CP%3ELink%20for%20query%3A%20%3CA%20href%3D%22https%3A%2F%2Fyou_domain%2Fitem%2Findex%3Fid%3D190237271%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyou_domain%2Fitem%2Findex%3Fid%3D190237271%3C%2FA%3E%3C%2FP%3E%3CP%3E%22User1%22%20receives%20the%20following%20%3A%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22User1View.png%22%20style%3D%22width%3A%20630px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320765i24E7D220DC5983F4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22User1View.png%22%20alt%3D%22User1View.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBut%20bot%20handles%20my%20action.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2895206%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2895206%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1183910%22%20target%3D%22_blank%22%3E%40Nivedipa-MSFT%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20updated%20APP%20manifest%20a%20little%20bit%3C%2FP%3E%3CP%3ELink%20unfurling%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flinkunfurlingsite.com%2Fitem%2Findex%3Fid%3D4%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flinkunfurlingsite.com%2Fitem%2Findex%3Fid%3D4%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2899416%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2899416%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1182850%22%20target%3D%22_blank%22%3E%40Paul_By%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThanks%20for%20sharing%20the%20details.We%20are%20checking%20on%20it.We%20will%20update%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2920947%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2920947%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1182850%22%20target%3D%22_blank%22%3E%40Paul_By%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20tried%20the%20sample.You%20have%20not%20added%20the%20permissions%20in%20manifest%20file.After%20adding%20the%20permissions%20we%20following%20result%20when%20user1%20click%20the%20action.submit.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NivedipaMSFT_0-1635944173069.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F323826i89BA9AF49F5DA586%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22NivedipaMSFT_0-1635944173069.png%22%20alt%3D%22NivedipaMSFT_0-1635944173069.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20user1%20also%20use%20the%20button%20now.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThanks%2C%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3ENivedipa%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E------------------------------------------------------------------------------------------------------------------------%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20the%20response%20is%20helpful%2C%20please%20click%20%22**Mark%20as%20Best%20Response**%22%20and%20like%20it.%20You%20can%20share%20your%20feedback%20via%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevSupportFeedback)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EMicrosoft%20Teams%20Developer%20Feedback%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Blink.%20Click%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevCommunityEscalationForm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20escalate.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2926461%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2926461%22%20slang%3D%22en-US%22%3EI%20can't%20see%20any%20requests%20like%20yours.%3CBR%20%2F%3EWhat%20kind%20of%20changes%20should%20I%20do%3F%20Project%20(manifect%20or%20bot)%20side%20or%20client%20side%20(MS%20Teams%20client)%20or%20Azure%20(administrative)%20side%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2937661%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2937661%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1182850%22%20target%3D%22_blank%22%3E%40Paul_By%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20add%20permissions%20block%20in%20project%20manifest%20file.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%22permissions%22%3A%20%5B%3CBR%20%2F%3E%22identity%22%2C%3CBR%20%2F%3E%22messageTeamMembers%22%3CBR%20%2F%3E%5D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThanks%2C%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENivedipa%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E------------------------------------------------------------------------------------------------------------------------%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20the%20response%20is%20helpful%2C%20please%20click%20%22**Mark%20as%20Best%20Response**%22%20and%20like%20it.%20You%20can%20share%20your%20feedback%20via%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevSupportFeedback)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EMicrosoft%20Teams%20Developer%20Feedback%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Blink.%20Click%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDevCommunityEscalationForm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bto%20escalate.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2939973%22%20slang%3D%22en-US%22%3ERe%3A%20MSTeams%20-%20Link%20Unfurling.%20Handle%20%22Action.Submit%22%20action%20of%20Adaptive%20Card%20from%20User-to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2939973%22%20slang%3D%22en-US%22%3EThank%20you.%20I'll%20check.%3C%2FLINGO-BODY%3E
Occasional Contributor

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?

11 Replies
Paul_By - As per my understanding, you are sending a card with one action button and it's working fine for you from a other person's chat where you send the card but it's not working for other user correct?
If yes, it should handle the request for other user as well.
We will also check it from our and let you know.

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,

@Paul_By 

Could you please share the sample which you are referring to so that we can repro at our end?

 

@Nivedipa-MSFT 

55.teams-link-unfurling.zip

Link for query: https://you_domain/item/index?id=190237271

"User1" receives the following : User1View.png

But bot handles my action.

@Nivedipa-MSFT 

I updated APP manifest a little bit

Link unfurling: https://linkunfurlingsite.com/item/index?id=4

@Paul_By

Thanks for sharing the details.We are checking on it.We will update you.

@Paul_By 

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.

 

NivedipaMSFT_0-1635944173069.png

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.

 

I can't see any requests like yours.
What kind of changes should I do? Project (manifect or bot) side or client side (MS Teams client) or Azure (administrative) side?

@Paul_By 

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. 

 

@Paul_By 

Is your issue resolved with above suggestion? Or still you need any help.