
Hello
I need to unzip each monday a file wich name changed.
this is my flow
and this is the error when I try it
Thank you for your feedback and help.
Hi @yamina ,
Please find the below solution.
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