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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Renaming an extracted ...
Power Automate
Unanswered

Renaming an extracted file from a zip attachment in an email to a SharePoint folder

(0) ShareShare
ReportReport
Posted on by 18

I have the following flow that works splendidly to extract a file from a zip attachment in an email into a SharePoint foler. However, it only works with one file at a time and it overwrites the file each time a new one deposited. I am attempting to dynamically rename the extracted file before it deposits into the SharePoint folder so I can keep each instance of every file that comes through. Is this possible?

 

cph020283_1-1698787496310.png

 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Re: Renaming an extracted file from a zip attachment in an email to a SharePoint folder

    Have you tried setting the Overwrite flag to No ?

  • cph020283 Profile Picture
    18 on at
    Re: Renaming an extracted file from a zip attachment in an email to a SharePoint folder

    Attempted that but it won't run successfully. Throws the following error (xx/yy is a placeholder):

     

    Destination folder 'xxxx/yyyyy/' already exists. To overwrite this folder, set overwrite to 'true'.
    clientRequestId: 5903f6ee-2b2e-46e1-b033-a3228704f2d7
    serviceRequestId: 83d9e9a0-a035-4000-5500-9128c66030c0

  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Re: Renaming an extracted file from a zip attachment in an email to a SharePoint folder

    Ah, so the flag is for the folder, not the files. That is unfortunate.  

     

    Another option would be to add a step before that renames the existing files to something else (add a timestamp to the name or something)

  • cph020283 Profile Picture
    18 on at
    Re: Renaming an extracted file from a zip attachment in an email to a SharePoint folder

    Sure - how would I go about doing that? I am uncertain as to how to do that.

     

    Thanks!

  • Verified answer
    lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Re: Renaming an extracted file from a zip attachment in an email to a SharePoint folder

    List all files in the target folder. Rename files.

    How To Easily Rename A SharePoint File With Power Automate (zeitgeistcode.com)

  • cph020283 Profile Picture
    18 on at
    Re: Renaming an extracted file from a zip attachment in an email to a SharePoint folder

    The instructions in that link worked, thank you! I ended up creating a separate PA flow that runs after the one in my OP that changes the name of 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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard