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 / Flow to read from emai...
Power Automate
Unanswered

Flow to read from email ref excel then rename attachments

(1) ShareShare
ReportReport
Posted on by
I have a problem that is doing my head in and could use your help if you can spare 5 mins thanks.
 
We have a shared mailbox where emails arrive that have attachments that are PDF statements.
 
The emails also have inline files which are footers, (senders business jpg etc) but we only interested in the actual PDF file attachments
 
We have a spreadsheet with 3 columns in SharePoint, (Incoming_email, Email_SUbject, New_File_Name) this file has about 1800 rows. This may have multiple entries of the same email address Incoming_email but the EMail_Subject will be different as often vendors all use the same company like xero to send statements.
 
Process:
When an email arrives in the shared mailbox.
  • we need to cross check the spreadsheet and see if the incoming email address matches anything in the Incoming _email field
  • we need to cross check the spreadsheet and see if the incoming subject matches anything in the Email_Subject field and if it does we need to save the NON INLINE attachment with the NEW_FIle_Name into a SharePoint folder location
  • IF the incoming email matches but the subject does not match then we need to still save the NON INLINE attachment with the NEW_FILE_Name in a Sharepoint folder
  • IF the email address does not match anything in the Incoming_email field then it needs to forward to a specific email address for review 
I have tried a lot of different designs and some get close but none work so i would be keen on getting a fresh set of eyes and input if i could
 
 
Categories:
I have the same question (0)
  • PM-22072236-0 Profile Picture
    on at
     
    For the most part the flow works, the issue is the file creation the content is always blank or the file is not readable.
    Any help would be appreciated.
     



  • AlexEncodian Profile Picture
    4,409 Moderator on at
    Can you show the configuration of the Create File action with expanded inputs for each field?

    Also for efficiency, I wouldnt look through the Excel lines. Use a Filter array action to match things in the Excel data

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard