Site icon Quickinfoz

🎯 Build Your First Flow in Power Automate (Step-by-Step, with Example) | DAY-3

In Day 1 you learned the What/Why/Where/When of Power Automate, and in Day 2 you met Connectors & Triggers.
Today we’ll build your first working automation—no code needed.

We’ll create this real-life flow:

Scenario: Save every email attachment with “Report” in the subject to a specific OneDrive folder—automatically.


✅ Prerequisites


🧭 What we’re building (at a glance)

[Trigger: When a new email arrives]
            │ (only with attachments + subject contains “Report”)
            ▌
[Loop over each attachment]
            ▌
[Create file in OneDrive /Reports/
]
            ▌
[Optional: Teams notification or mark email as read]

đŸ› ïž Step-by-Step: Create the Flow

Step 1: Open Power Automate

  1. Visit make.powerautomate.com
  2. Left menu → Create
  3. Choose Automated cloud flow

Step 2: Name & Choose Trigger

Step 3: Configure the Trigger

In the trigger card, set:

💡 Tip: Using “Only with Attachments = Yes” prevents the flow from running on emails with no files.

Step 4: Add “Apply to each” (loop over attachments)

  1. Click + New step
  2. Search Apply to each
  3. In Select an output from previous steps, choose Attachments (from the trigger’s dynamic content)

This tells the flow to run the next steps for each attachment found in the email.

Step 5: Inside the loop → Create the file in OneDrive

  1. Inside Apply to each, click Add an action
  2. Choose OneDrive for Business → Create file
  3. Configure:
    • Folder Path: /Reports (or browse to your folder)
    • File Name: Click in the field and insert Name (from the attachment)
    • File Content: Insert Content bytes (from the attachment)

🧠 Why Content bytes? That’s the actual file content of the attachment.

(Optional) Step 6: Post a Teams notification

  1. Still inside the loop, click Add an action
  2. Choose Microsoft Teams → Post a message in a chat or channel
  3. Set:
    • Post as: Flow bot
    • Post in: Channel
    • Team/Channel: Choose your team & channel
    • Message:
      Saved: @{items('Apply_to_each')?['name']} from @{triggerOutputs()?['body/from']} to /Reports

🎯 This gives you instant visibility that a file was saved.

Step 7: Save & Test


đŸ§Ș Verify It Worked


🧰 Common Pitfalls & Fixes


đŸ§© Variations You Can Try

Variation A: Move email after saving files

Keeps your Inbox clean—automation + tidy mail = 💙

Variation B: Add a timestamp to file names

Variation C: Send approval if file is from a VIP sender


🧠 Pro Tips (Beginner-friendly)


📘 Bonus: A Second Beginner Flow (5 minutes)

Forms → Teams + Excel log

  1. Trigger: Microsoft Forms → When a new response is submitted
  2. Action: Forms → Get response details
  3. Action: Teams → Post a message in a channel (share key answers)
  4. Action: Excel Online (Business) → Add a row into a table (store responses in a central log)

Perfect for simple surveys, feedback, or lead capture—super easy win.


✅ Wrap-Up

You’ve just built your first Power Automate flow—and proved to yourself that automation doesn’t require coding.
From here on, you’ll start spotting opportunities everywhere: “If this happens → then do that.”

Next up: we’ll explore flow best practices (variables, conditions, error handling, and performance tips) so your automations are clean, reliable, and scalable.

Exit mobile version