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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Saving 1 file when ema...
Power Automate
Answered

Saving 1 file when email contains 2 files into a sharepoint

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

I receive an email once per week that contains "File A" and "File B" in the same note...both are Excel spreadsheets. 

 

I want to ignore File B and only save File A to my SharePoint. How do i set it up when there are 2 files in 1 email? I know how to save it when there is 1. 

 

Thanks! 

Categories:
I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

    Something like this should do it:

     

    Rhiassuring_0-1659772053198.png

     

    A condition to check the Attachment Name - if it's equal to (whatever it normally is), then, Create the file. If not, then do nothing. Move onto the next attachment.

     

    The File Content expression is items('Apply_to_each')?['contentBytes'].

     

  • esaul23 Profile Picture
    14 on at

    worked like a charm! 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard