Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Overwrite a SharePoint xlsx file with Outlook Attachment

(0) ShareShare
ReportReport
Posted on by

I am trying to create a flow that will take an xlsx attachment from Outlook (The trigger is the subject as the xlsx filename can change) and save it to a SharePoint folder overwriting an xlsx file that is already stored there.

This file is used in a Power BI dataset.

I have my flow to refresh the dataset when the xlsx is updated okay.

 

I seem to be struggling with the outlook part, following some advice I seem to have the attachment save to the folder (Does not overwrite the xlsx there just saves the attachment as a new file) but if there is an image in the email signature that saves as well to the SharePoint folder.

 

What would be the best steps to help achive a working flow?

 

Any help you can offer is appreciated, thank you.

  • ScottShearer Profile Picture
    25,212 Most Valuable Professional on at
    Re: Overwrite a SharePoint xlsx file with Outlook Attachment

    @Anonymous 

    You might try using a SharePoint delete file action before creating the new file.

    Also, before creating a file, use a condition and check the file extension.  If the file has an image type of extension (.png, etc.) don't create the file.

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow