Automate Repetitive Tasks with Power Automate for Web
In this article
Power Automate for web (formerly Microsoft Flow) lets you create automated workflows that handle repetitive digital tasks—like saving email attachments to OneDrive, copying rows between Excel tables, or posting a message to Teams when a new form response arrives. You don’t need to write code; you build flows using a visual designer with triggers and actions. This guide walks you through creating your first automated flow from scratch, testing it, and avoiding common pitfalls.
What You'll Need
- A Microsoft work or school account, or a personal Microsoft account (Outlook.com, Hotmail, etc.).
- Access to make.powerautomate.com in a modern browser (Edge, Chrome, Firefox, or Safari).
- A basic understanding of the apps you want to connect (e.g., Outlook, SharePoint, Excel Online).
- For flows that interact with data, you may need appropriate permissions to those services (e.g., SharePoint list access).
Step-by-Step
- Sign in to Power Automate. Go to make.powerautomate.com and sign in with your Microsoft account. If you’re using a work account, you might be redirected to your organization’s tenant.
- Choose a starting point. On the left navigation, click Create. You’ll see options like Automated cloud flow, Instant cloud flow, Scheduled cloud flow, and Template. For most repetitive tasks, pick Automated cloud flow—it starts with a trigger that runs when an event happens (e.g., a new email arrives).
- Name your flow and pick a trigger. Give your flow a descriptive name (e.g., “Save email attachments to OneDrive”). Then search for and select a trigger—for example, When a new email arrives (Outlook) or When an item is created (SharePoint). Click Create.
- Set up the trigger. Configure the trigger’s required fields. For Outlook, you might choose the folder to watch (e.g., Inbox) and whether to include attachments. For SharePoint, select the site and list. Some triggers have advanced options like “Only with attachments” or “Importance”—set these as needed.
- Add an action. Click + New step. Search for the service you want to use (e.g., OneDrive, Excel, Teams) and select an action. For example, to save an attachment, choose OneDrive for Business → Create file.
- Connect your accounts. If you haven’t connected to the service before, you’ll be prompted to sign in and grant permission. Click Sign in and follow the prompts. Once connected, the action’s fields will appear.
- Fill in the action’s parameters. Use the dynamic content picker (the lightning bolt icon) to insert values from the trigger. For the “Create file” action, choose the folder path, then set the file name (e.g.,
Attachment Namefrom the trigger) and file content (e.g.,Attachment Content). - Add more actions if needed. Repeat steps 5–7 to add more steps, such as sending a notification or updating a spreadsheet. You can also add Conditions (under Control) to run actions only when certain criteria are met.
- Save your flow. Click Save in the top-right corner. The flow is now live—it will run automatically when the trigger fires.
- Test your flow. To test, you can trigger it manually (if it’s an instant flow) or wait for the event. For automated flows, use the Test button in the top-right, select “Manually” or “With a sample payload,” and follow the prompts. Then check the run history to see if it succeeded.
- Monitor run history. Go to My flows in the left navigation, select your flow, and click Run history. Each run shows success or failure, and you can click into a run to see each step’s inputs and outputs.
Common Mistakes
- Not using dynamic content correctly. Hardcoding values like a file name instead of using the dynamic content picker will cause the flow to overwrite the same file every time.
- Ignoring trigger conditions. Without conditions, a flow might run on every email, not just the ones you care about. Use trigger conditions (e.g., only when subject contains “Invoice”) to avoid unnecessary runs.
- Forgetting to handle attachments. If your trigger includes attachments, you must loop through them with an Apply to each action, or only the first attachment will be processed.
- Using the wrong connector. There are separate connectors for Outlook (email) and Outlook.com (personal). Make sure you pick the one that matches your account type.
- Not testing with sample data. Testing with real data can be risky. Use the “With a sample payload” option to simulate an event without affecting live data.
Tips
- Start with a template. Power Automate offers hundreds of templates for common scenarios. Browse Create → Template to find one close to your need, then customize it.
- Use “Apply to each” for collections. When dealing with arrays (like multiple attachments or rows), wrap your actions in an Apply to each control to process each item individually.
- Add error handling. Configure Configure run after on actions to run a fallback action (e.g., send an email) if the previous step fails.
- Use expressions for complex logic. In the dynamic content picker, click Expression to write functions like
utcNow()orconcat()for custom values. - Keep flows simple. Break complex processes into multiple flows that trigger each other, rather than one giant flow that’s hard to debug.
- Check the “Run only when” settings. For actions, you can specify whether they run on success, failure, or timeout of the previous step—this is crucial for reliable workflows.
Troubleshooting
- Flow fails with “BadRequest” or “InvalidTemplate”. This usually means a field is missing or incorrectly referenced. Open the run history, expand the failed step, and look at the error details. Check that dynamic content IDs are correct.
- Trigger doesn’t fire. Verify that the trigger’s connection is still valid (go to Data → Connections to see status). Also check if the trigger has a delay—some connectors have a polling interval (e.g., every 3 minutes).
- Action can’t find the file or item. Make sure the folder path or list name is spelled exactly as it appears in the source app. Use the dynamic content picker to select from a list rather than typing.
- Flow runs but does nothing. Check if a condition is filtering out all items. Add a “Compose” action to log the trigger output, then inspect it in the run history.
- Connections expire. If you see an error about a connection being invalid, go to Data → Connections, select the connection, and click Edit to re-authenticate.
- Flow is too slow. Some connectors have throttling limits. Review the run history for “429” errors and consider using a scheduled flow instead of a trigger that fires too frequently.
Frequently Asked Questions
- How much does Power Automate for web cost? There is a free tier with limited runs per month (typically 500–2000 depending on your plan). For more runs and premium connectors, you need a Power Automate per-user or per-flow license.
- Can I use Power Automate with my personal Microsoft account? Yes, you can sign up with a personal account, but you’ll have access to a smaller set of connectors (e.g., Outlook.com, OneDrive personal). Some premium connectors require a work or school account.
- How do I stop a flow from running? Go to My flows, select the flow, and use the toggle to turn it off. You can also delete the flow entirely.
- Can I share my flow with others? Yes, you can share a flow with colleagues by going to the flow’s details and clicking Share. They’ll need appropriate licenses and permissions.
- What’s the difference between a flow and a logic app? Power Automate is designed for business users with a low-code interface, while Azure Logic Apps is a developer-focused service with more advanced integration and pricing. For most office automation, Power Automate is sufficient.
- How do I debug a flow that fails intermittently? Check the run history for patterns (e.g., always fails on a certain day). Add “Compose” actions to log key values, and use “Configure run after” to capture error details in an email or a SharePoint list.