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 / unzip file with changi...
Power Automate
Answered

unzip file with changing name each monday with power automate

(0) ShareShare
ReportReport
Posted on by 7

Hello

 

 I need to unzip each monday a file wich name changed.  

this is my flow 

yamina_0-1714380088196.png

and this is the error when I try it

yamina_1-1714380158278.png

Thank you for your feedback and help. 

 

 

 

I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @yamina ,

     

    Please find the below solution.

     

    VishnuReddy1997_0-1714381617390.png

     

    Code:

    Please copy the below code into your flow and make necessary changes.

    Outlook.Launch Instance=> OutlookInstance
    Outlook.RetrieveEmailMessages.RetrieveEmailsAndSaveAttachments Instance: OutlookInstance Account: $'''varikutivishnuvardhan.reddy@acme.com''' MailFolder: $'''Inbox''' EmailsToRetrieve: Outlook.RetrieveMessagesMode.Unread MarkAsRead: True ReadBodyAsHtml: False SubjectContains: $'''Zip''' SaveAttachmentsInto: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Outlook''' Messages=> RetrievedEmails
    Folder.GetFiles Folder: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Outlook''' FileFilter: $'''*''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Files
    LOOP FOREACH CurrentItem IN Files
     Compression.UnzipFiles ArchivePath: CurrentItem.FullName DestinationFolder: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Outlook\\output'''
    END

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

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 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard