Forum Discussion

Patterborn's avatar
Patterborn
Copper Contributor
Nov 04, 2025

Search from taskpane

Is it possible to do a mailbox search from a custom taskepane.

I know i can do search via Graph and make my own view of the results, but it would be so much easier to generate a query string and pass that too the build in search bar and then display the result as if the user had made an manual search.

1 Reply

  • rogerreed's avatar
    rogerreed
    Brass Contributor

    Nah, you can’t trigger the built-in Outlook search bar directly from a custom task pane, Microsoft doesn’t expose that in the Office JS API. Easiest workaround is what you said: use Graph or EWS to run the search yourself and show the results in your own UI.

Resources