SOLVED

Getting values from adaptive cards

%3CLINGO-SUB%20id%3D%22lingo-sub-1568967%22%20slang%3D%22en-US%22%3EGetting%20values%20from%20adaptive%20cards%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1568967%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20messaging%20extension%20and%20want%20to%20create%20functionality%20such%20that%20when%20I%20run%20the%20action%20command%2C%20an%20adaptive%20card%20pops%20up%20with%20a%20list%20of%20options(see%20picture%20below).%20When%20an%20option%20is%20selected%20and%20the%20open%20button%20is%20pressed%2C%20a%20hero%20card%20should%20appear%20in%20the%20compose%20box%20with%20a%20button%20that%20depends%20on%20what%20option%20is%20selected.%20However%2C%20I%20can't%20find%20anything%20on%20how%20to%20actually%20access%20the%20values%20from%20the%20inputs%20of%20the%20adaptive%20card%20after%20an%20action.submit.%20Please%20advise%20on%20how%20to%20do%20this.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MST%20Adaptive%20Card%20Submit.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F210473i400465F14453A2AA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MST%20Adaptive%20Card%20Submit.PNG%22%20alt%3D%22MST%20Adaptive%20Card%20Submit.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1568967%22%20slang%3D%22en-US%22%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-1569029%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20values%20from%20adaptive%20cards%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1569029%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714579%22%20target%3D%22_blank%22%3E%40marcusyoung%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4392%22%20target%3D%22_blank%22%3E%40Yannick%20Reekmans%3C%2FA%3E%26nbsp%3Bmay%20be%20able%20to%20help%20you%20with%20this%20one%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%2C%20Chris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1569066%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20values%20from%20adaptive%20cards%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1569066%22%20slang%3D%22en-US%22%3EMaybe%20this%20Microsoft%20Learn%20module%20can%20help%20you%20out%3F%20%3D%26gt%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Flearn%2Fmodules%2Fmsteams-task-modules%2F6-use-task-modules-bots%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Flearn%2Fmodules%2Fmsteams-task-modules%2F6-use-task-modules-bots%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20essence%3A%20you%20need%20to%20invoke%20the%20Task%20Module%20(pop%20up)%20in%20a%20certain%20way%20to%20receive%20the%20response.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a messaging extension and want to create functionality such that when I run the action command, an adaptive card pops up with a list of options(see picture below). When an option is selected and the open button is pressed, a hero card should appear in the compose box with a button that depends on what option is selected. However, I can't find anything on how to actually access the values from the inputs of the adaptive card after an action.submit. Please advise on how to do this.

MST Adaptive Card Submit.PNG

2 Replies
Highlighted

@marcusyoung 

 

@Yannick Reekmans may be able to help you with this one 

 

Best, Chris

Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution
Maybe this Microsoft Learn module can help you out? => https://docs.microsoft.com/en-us/learn/modules/msteams-task-modules/6-use-task-modules-bots

In essence: you need to invoke the Task Module (pop up) in a certain way to receive the response.