Flowwijzer
Lesson 2

Your first flow: save attachments automatically

You build a flow that saves every attachment from your incoming emails to a folder on OneDrive. You use one trigger and one action. This is the pattern behind almost every flow.

Basic15 minutes

What do you need? An Outlook mailbox and OneDrive through your work or school account.

Good to know: the screenshots on this site show the Dutch version of Power Automate. The English names of menus and buttons are used in the text, so you can follow along in your own language.

What the flow looks like
The flow you build in this lesson. The loop is added automatically.

How to choose dynamic content

In many fields you do not type fixed text but use data from an earlier step, such as the name of an attachment. This is called dynamic content. Here is how you pick it:

You will learn how expressions work in lesson 4.

Step by step

0 of 9 steps checked off
  1. The Create screen with the option Automated cloud flow (Dutch interface)
    Choose Automated cloud flow. Tap the image to enlarge. It shows the Dutch interface.
  2. The dialog for creating an automated cloud flow, with the Office 365 Outlook trigger for a new email selected (Dutch interface)
    Name the flow and choose the Office 365 Outlook trigger. Tap the image to enlarge. It shows the Dutch interface.
  3. The opened trigger with Include Attachments and Only with Attachments set to Yes (Dutch interface)
    Set Include Attachments and Only with Attachments to Yes. Tap the image to enlarge. It shows the Dutch interface.
  4. The search pane for adding an action, with Create file from OneDrive for Business at the top (Dutch interface)
    Choose Create file from OneDrive for Business, not the SharePoint one. Tap the image to enlarge. It shows the Dutch interface.
  5. The action Create file inside the Apply to each loop (Dutch interface)
    The action is placed in a loop automatically. Tap the image to enlarge. It shows the Dutch interface.
  6. The action Create file with a folder path, Attachments Name as file name and Attachments Content as file content (Dutch interface)
    This is what the completed action looks like. Tap the image to enlarge. It shows the Dutch interface.
  7. The flow after a successful test, with a green check mark at every step and the loop around Create file (Dutch interface)
    After a successful test, every step has a green check mark. Tap the image to enlarge. It shows the Dutch interface.

Not working? Open the flow via My flows and look at the Run history. It shows what happened in each step and where it went wrong.

Last updated:

Was this lesson helpful?

No account needed. I read everything.