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 / Save email attachment ...
Power Automate
Unanswered

Save email attachment to Dropbox and overwrite same file name each time

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I'm relatively new to Flows but have struggled to get my head round this simple process...

 

When I receive a new email into Outlook from a specified sender, I want the email attachment to be saved to Dropbox as the same file name each time. Even if it overwrites an existing file with the same name i.e. I always want the attachment to save as TEST_FILE.xlsx

 

Im struggling to get flows to overwrite the TEST_FILE.xlsx name each time

 

Also how do you specify to Flows that it should save it as .xlsx?

 

Any help would be much appreciated thanks

 

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @ cwallis123,

     

    Could you please share a screenshot of the configuation of your flow?

    Do you want to save the attachment of the email in the Dropbox and name the file as “TEST_FILE.xlsx” ?

    What is the document type of the attachment? Would it always be a ".xlsx" file?

     

    I have made a test on my side, if the attachment is a ".xlsx" file, you could refer to steps below to create the flow:

    1. Add a trigger “When a new email arrives”, fill in an email address in the “From” field, the “Has Attachment” field and the “Include Attachments” both choose “Yes”.
    2. Add action “List files in folder” of Dropbox connector, choose the file path that you want to save the attachment in the “Folder” field.
    3. Add an “Apply to each”, choose the “Body” dynamic content of the “List files in folder” in the input field.
    4. Add a Condition inside the “Apply to each”, the first value choose the “Name” dynamic content of the “List files in folder”, the second value fill in “TEST_FILE.xlsx”, the condition in the middle choose “is equal to”.
    5. Add a “delete file” action of the Dropbox connector in the If yes branch of the Condition, choose the “Id” dynamic content of the “List files in folder” in the file field.
    6. Under the “Apply to each”, add an “Apply to each 2”, choose the “Attachments” dynamic content of the trigger in the input field.
    7. Add a “Create file” inside the “Apply to each 2”,choose the “Content”dynamic content of the trigger in the “File Content”t field, choose the file path that you want to save the attachment in the “Folder path” field, the path should the same as the path of “Folder” field of action “List files in folder”.Fill in “TEST_FILE.xlsx” in the “File name” field.

    1.png2.png

    When an email is arrives with attachment and is sent by “Test2@XXXXXXXXXX.com” ,the flow would run successfully to save the attachment as “TEST_FILE.xlsx” in the dropbox, and if the path have already have a file that name is “TEST_FILE.xlsx”,the acttachment would overwrite the file.

     3.png

     

     

    Regards,
    Alice Zhang

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard