web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Search OneDrive folder...
Power Automate
Unanswered

Search OneDrive folder and attach files to email

(0) ShareShare
ReportReport
Posted on by 2

I'm trying to set up a flow in which:

- User sends an email to an address - they include some keywords in the body of the email

- The flow searches a OneDrive folder for documents that include the keywords in the document name

- The documents are attached to an email back to the user.

I have the below flow which will send files back but it takes ALL the files in the folder, it doesn't select based on keyword. Is there a way to make it select by keyword? My current flow below

 

Crouchie_0-1635080680598.png

Crouchie_1-1635080988103.png

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @Crouchie 

     

    You can use Filter Array(see screenshot) below  ---

     

    CFernandes_0-1635098201472.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • Crouchie Profile Picture
    2 on at

    Thanks How does this fit with then attaching the resulting files to the email? I tried a few different approaches and each time the flow runs but doesn't come back with an attachment.

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hello @Crouchie 

     

    The idea is first Filter the files using Filename and then only attach the filter files to the email. 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard