Is it possible to use a button embedded within a thumbnail card to trigger another search?

%3CLINGO-SUB%20id%3D%22lingo-sub-3431426%22%20slang%3D%22en-US%22%3EIs%20it%20possible%20to%20use%20a%20button%20embedded%20within%20a%20thumbnail%20card%20to%20trigger%20another%20search%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3431426%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20solution%20which%20aims%20to%20provide%20a%20search%20experience%20for%20a%20user%20that%20will%20also%20enable%20them%20to%20search%20for%20%22related%22%20items.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20this%20to%20function%20where%20the%20user%20is%20presented%20a%20button%20in%20their%20search%20response%20to%20trigger%20a%20new%20search%20with%20different%20query%20parameter.%20Something%20like%20%22relatedto%3A%20X%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20would%20be%20the%20best%20method%20to%20use%20for%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3431426%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBot%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBot%20Framework%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ecards%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-3433955%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20use%20a%20button%20embedded%20within%20a%20thumbnail%20card%20to%20trigger%20another%20search%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3433955%22%20slang%3D%22en-US%22%3EWe%20are%20looking%20into%20this%20we%20will%20update%20you.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3439130%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20use%20a%20button%20embedded%20within%20a%20thumbnail%20card%20to%20trigger%20another%20search%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3439130%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1395473%22%20target%3D%22_blank%22%3E%40BazVanDenDungen%3C%2FA%3E%26nbsp%3B-%26nbsp%3BCould%20you%20please%20share%20the%20below%20details%2C%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EWhat%20component%20are%20you%20using%20for%20implementing%20the%20search%20functionality%3C%2FLI%3E%0A%3CLI%3EPlease%20share%20the%20JSON%20of%20the%20thumbnail%20card%3C%2FLI%3E%0A%3CLI%3EPlease%20share%20the%20repro%20steps%20or%20document%20that%20you%20are%20following.%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3447384%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20use%20a%20button%20embedded%20within%20a%20thumbnail%20card%20to%20trigger%20another%20search%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3447384%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092848%22%20target%3D%22_blank%22%3E%40Meghana-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20I%20am%20using%20Search%20Extensions%20to%20provide%20the%20user%20with%20a%20search%20experience%20through%20the%20command%20bar%20and%20compose%20areas%20of%20teams.%3CBR%20%2F%3E2.%20I%20am%20currently%20in%20the%20exploration%20phase%20and%20am%20using%20the%20C%23%20Microsoft.Bot.Schema%20library%20to%20create%20my%20thumbnail%20cards.%20Below%20is%20the%20C%23%20that%20i%20am%20currently%20using%20to%20return%20search%20results.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Evar%20previewcard%20%3D%20new%20ThumbnailCard%0A%7B%0A%20%20%20%20Title%20%3D%20result.Title.Raw%2C%0A%20%20%20%20Text%20%3D%20result.Description.Raw%2C%0A%20%20%20%20Subtitle%20%3D%20result.Source.Raw%2C%0A%20%20%20%20Images%20%3D%20new%20List%3CCARDIMAGE%3E%20%7B%20new%20CardImage%20%7B%20Url%20%3D%20%22https%3A%2F%2F%3CURL%3E.ngrok.io%2FextensionDOCX_x256.png%22%20%7D%20%7D%2C%0A%20%20%20%20Buttons%20%3D%20new%20List%3CCARDACTION%3E%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20new%20CardAction(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22openUrl%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22WebDav%20Link%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20value%3A%20%22%3CWEBDAV%20url%3D%22%22%20for%3D%22%22%20document%3D%22%22%3E%22)%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%3B%3C%2FWEBDAV%3E%3C%2FCARDACTION%3E%3C%2FURL%3E%3C%2FCARDIMAGE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B3.%20I%20don't%20really%20have%20any%20repro%20steps%20as%20I%20was%20doing%20research%20and%20found%20documentation%20on%20the%20ListCard%20but%20noticed%20that%20it%20was%20unsupported%20for%20teams%20bots.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20vaguely%20aware%20that%20teams%20has%20some%20functionality%20for%20having%20bots%20trigger%20popup%20windows%20but%20i%20cannot%20find%20the%20documentation%20for%20that%20feature%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3464615%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20use%20a%20button%20embedded%20within%20a%20thumbnail%20card%20to%20trigger%20another%20search%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3464615%22%20slang%3D%22en-US%22%3EThe%20possibilities%20with%20Search%20messaging%20extensions%20are%20mentioned%20here.%20Could%20you%20please%20go%20through%20this%20documentation%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fmessaging-extensions%2Fwhat-are-messaging-extensions%3Ftabs%3Ddotnet%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fmessaging-extensions%2Fwhat-are-messaging-extensions%3Ftabs%3Ddotnet%3C%2FA%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a solution which aims to provide a search experience for a user that will also enable them to search for "related" items.

 

I would like this to function where the user is presented a button in their search response to trigger a new search with different query parameter. Something like "relatedto: X".

 

What would be the best method to use for this?

 

4 Replies
We are looking into this we will update you.

@BazVanDenDungen - Could you please share the below details,

  1. What component are you using for implementing the search functionality
  2. Please share the JSON of the thumbnail card
  3. Please share the repro steps or document that you are following.

@Meghana-MSFT 

 

1. I am using Search Extensions to provide the user with a search experience through the command bar and compose areas of teams.
2. I am currently in the exploration phase and am using the C# Microsoft.Bot.Schema library to create my thumbnail cards. Below is the C# that i am currently using to return search results.

var previewcard = new ThumbnailCard
{
    Title = result.Title.Raw,
    Text = result.Description.Raw,
    Subtitle = result.Source.Raw,
    Images = new List<CardImage> { new CardImage { Url = "https://<url>.ngrok.io/extensionDOCX_x256.png" } },
    Buttons = new List<CardAction>
    {
        new CardAction(
                "openUrl",
                "WebDav Link",
                value: "<webdav url for document>")
        }
    }
};

 3. I don't really have any repro steps as I was doing research and found documentation on the ListCard but noticed that it was unsupported for teams bots. 

 

I am vaguely aware that teams has some functionality for having bots trigger popup windows but i cannot find the documentation for that feature again.

The possibilities with Search messaging extensions are mentioned here. Could you please go through this documentation?

https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/what-are-messaging-ext...