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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract zip and rename...
Power Automate
Answered

Extract zip and rename content

(0) ShareShare
ReportReport
Posted on by 9

I'm fairly new to Power Automate and stuck with a specific flow.

 

When I add a zip file to a location on SharePoint, I want to extract its contents and delete the zip file. Luckily, there is a template for this that works. Unfortunately, the content of the zip file that I receive on a daily basis has an export date in the filename.

I want to connect reports to this file with Power Query, but the file changes every day because of the date in the filename.

 

What I want is for Power Automate to give a custom name instead of the filename in the zip file. Then, I can connect to the same file every day.

 

Is that possible?

 

RobinvR1909_1-1683100967490.png

 

Categories:
I have the same question (0)
  • Verified answer
    RobinvR1909 Profile Picture
    9 on at

    I solved it. In case someone is looking for the same fix, here is my workaround.

     

    I created a new flow and used the template "Move files from one SharePoint folder to another".

    For the "When a new file is created" action, I used the folder ID where the unpacked zip file is stored, as mentioned in my previous post.

     

    The following action is "Create File". Here, I specify the desired location and filename with extension (for example, "name.csv"). 

     

    The final action is another "Delete file". This deletes the file from the source folder from the first step, to ensure that there is only one file in this folder. 

     

    Run this script. Then edit it and insert "Delete file" between "When a file is created" and "Create file". Reason is that you have to delete the file you created with the step "create file". The action "create file" can't overwrite and generates an error. This is why you have to delete this file in order to update it with the new 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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard