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 / Multiple image files f...
Power Automate
Unanswered

Multiple image files from Onedrive send as Outlook email attachments

(0) ShareShare
ReportReport
Posted on by

Good day! I'm trying to create a flow when an image file is created in a Onedrive folder it will be sent as email attachments in Outlook. I tried following examples from other discussions but I keep on getting an error in "Get file content". I will be attaching the flow I created. Hoping for your help. Thank you!

Screenshot 2024-04-28 141547.pngScreenshot 2024-04-28 141607.pngScreenshot 2024-04-28 141624.pngScreenshot 2024-04-28 141638.png

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @neko96 

     

    The action "List files in folder" also returns folder along with files and the flow is failing when it encounters folder in the output array of this action.

     

    To resolve this issue, add "Filter array" action just after "List files in folder" action and apply filter query to filter out the folders from the output of list files in folder action. Pass the value object from the output of "List files in folder" action in 'From' parameter. Click 'Edit in advanced mode' button on the bottom and enter the below query:

    ManishSolanki_0-1714292942608.png

    Enter the below query in the textbox:

    @equals(item()?['IsFolder'], false)

     

    Finally, pass the output body of filter array to 'Apply to each' action as its input:

    ManishSolanki_1-1714293058066.png

     

    Pls retest the flow after making the required changes.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • CU01081201-2 Profile Picture
    on at

    Hi! Thank you so much for helping me. Can I just have one last question? The flow worked well now but my problem is that it is sending an email each time a file is created, may I know the solution to this?

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @neko96 

     

    This is because you have chosen "When a file is created" trigger that execute the flow whenever a new file is created in onedrive.

     

    You can check if "Manually trigger a flow" or "Recurrance" works in your case. When you choose "Manually trigger a flow" then you need to run the flow as an when needed but if you set it to recurrence then flow will execute on schedule basis based on its configuration.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

     

     

  • CU01081201-2 Profile Picture
    on at

    I see. Thank you very much @ManishSolanki !!

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