Files and Folders in Power Automate for Desktop (Full Tutorial)

preview_player
Показать описание
This full tutorial shows how to work with files and folders in Microsoft Power Automate for Desktop. The step-by-step use case teaches you to move files between folders based on advanced conditions and create a log.

VIDEOS FOR YOU:

- Join my network with 2800+ RPA Developers, where we solve RPA problems, network, and help each other upgrade our careers. It's free!

FOLLOW ME:

MY MONITOR (Amazon affiliate):

0:00 Intro
Download the course files from the link above. The hands-on Power Automate Desktop use case is about sorting files into their respective folders given their type. But first, we must unzip files. Copy the path to the file and assign it to a variable.

2:00 Unzip
Use a Get files in folder, with a filter for zip extensions, action to get all the zip files into a list. We use comments to make our flow easy to understand in the future. Use a For each action to iterate the files (names). When you have unzipped the file(s) you can use a Delete file(s) to delete the zip file.

6:48 Sort files
The Get files in folder action get all the files in the target folder. Including subfolders, if you want. The file names are stored in a list, so we can work with them. Again we use a For each action to iterate through the files. We use an If action with a condition, where we look at the end of the file name, the file extension. The Move file(s) action moves the files based on the If condition.

14:08 Create a log
We store the sorted and moved files into lists. We use these in the log including a count of each file type. The Create new list action creates the list and an Add item to list action adds to the list. To have multiple lines in the log we use a Set variable and design the log here. We add Total files sorted, Total Notepad files sorted, Total Excel files sorted, Total Word files sorted and each file name sorted and moved. Use a Write text to file and use the variable just created to print out the log. To create unique log names we use the date and time as the file name, so each time the robot runs, there will be a new file name.

25:56 The Switch and case actions in Power Automate for Desktop
If we have many else's in our If action, it's great to use a Switch action. Then we'll use the Case action for each branch.

#office365 #powerautomate #rpa
Рекомендации по теме
Комментарии
Автор

LIKE AND SUBSCRIBE IF YOU ENJOYED 🙌🔥
Instagram: @andersjensenorg

andersjensenorg
Автор

Your tutorials are such high quality! I wouldn't have thought to learn how to automate a nasty task that would have taken me literally 40 hours in less than 2 hours! Thank you so much!

Quabbe
Автор

Probably, the most detailed and clear explanation for Power Automate anywhere. Thank you. Subscribed after watching this first video.

AhmedBalfaqih
Автор

Excellent Lesson and I learned so much - now to develop this to sort and move files in my Onedrive that has become very messy over the years - thanks again

shaunrowley
Автор

Thank you Anders! As a Power Automated beginner user, your videos have helped me a lot in the first steps

febsil
Автор

Best walkthrough on the internet. Got my flow running without issue and learned quite a bit! Thank you, Anders!

jordanmartens
Автор

Dear Mr. Jensen. Excellent tutorial. Thanks for sharing.

jalonnun
Автор

Amazed on the things you can learn with this app, thank you, great lesson!

FTSociety
Автор

Thank you for your work putting these lessons out there!🙂

terrymorrison
Автор

Another good learning experience. Very clear. Thanks for sharing!

sazzarello
Автор

Hey anders,
I have started watching your videos on power automate for the past one week and I'm truly impressed with the way you are explaining stuff. What do you think is the correct approach for me to pursue my career in Power automate RPA.

wamshipabbisetty
Автор

Brilliant tutorial as always Anders. I have learned so much!

daveys
Автор

Watching this tutorial is satisfying too!

mikikwan
Автор

Really nice tutorial! Just adding a note here to help people that might use this video for a real case scenario, taking care of the upper case in the extension could save you some trouble! :)

For the Switch condition: toLower(%File.Extension%)

MaxCriant
Автор

i am glad i found this solution really amazing

ZefasBi-Analytics
Автор

I am enjoying your videos, please make videos on all actions of power Automate Desktop

OnlyIasReader
Автор

How do you run it in production in unattended mode?do we need to run on machine running on 24x7?

brijendraydv
Автор

Great tutorials but I'm having trouble finding how to extract files from a folder and copy them into another folder but only extracting the files listed in an Excel sheet?

gemmabannister
Автор

Thank you so much. Very good video !!!

PitakYT
Автор

Do you have a video explaining how to take all files in a folder and send them as email attachments?

aesievers