Streamlining your workflow often involves integrating various tools to automate tasks and enhance productivity. One powerful combination is using Microsoft Power Automate with Excel to automate repetitive tasks, such as planning and exporting data. This article guides you through the process of using Power Automate to export planner tasks to Excel.

Before we dive into the steps, ensure you have both Microsoft Planner and Power Automate (formerly known as Microsoft Flow) set up in your environment. If you haven't yet, you can find them in the Microsoft 365 suite.

Setting Up Your Power Automate Flow
Power Automate allows you to create automated workflows, known as flows, between apps without writing code. Here's how to set up a flow to export planner tasks to Excel.

First, sign in to the Power Automate portal at flow.microsoft.com. Click on 'My flows' and then 'New' to create a new flow.
Triggering the Flow

To start the process, you need to set a trigger. For this scenario, let's use the 'Recurrence' trigger, which will run the flow at a specified interval. Click on 'Recurrence' and set the frequency (e.g., daily, weekly).
Alternatively, you can use other triggers like 'Manually trigger a flow' or 'When an item is created or modified' in Microsoft Planner. Choose the one that best fits your needs.
Getting Planner Tasks

Next, add an action to get the tasks from Microsoft Planner. Click on 'New step', then 'Add an action'. Search for 'Microsoft Planner' and select the connector. Choose the action 'Get tasks'.
Configure the action by providing the group ID and plan ID where your tasks are stored. You can find these IDs in the Planner web interface. Click 'OK' to save the action.
Formatting and Exporting Data to Excel

Now that you have the tasks, it's time to format the data and export it to Excel. For this, we'll use the 'Compose' action to format the data and the 'Excel Online (Business)' connector to export it.
Before proceeding, ensure you have an Excel file set up with the necessary headers for the task data. You can use the 'Create a new file' action in the Excel connector to create a new file or use an existing one.



















Formatting Task Data
Add a 'Compose' action to format the task data as needed. In the 'Input' field, enter the dynamic content from the 'Get tasks' action. You can format the data using JSON or a simple text format.
For example, you can format the task data like this: "Title: {{title}}, Due Date: {{dueDate}}, Assigned To: {{assignedTo}}". This will create a formatted string for each task with its title, due date, and assigned user.
Exporting Data to Excel
Now, add the 'Excel Online (Business)' connector and choose the 'Add a row into a table' action. Configure the action by providing the Excel file ID, table name, and the data from the 'Compose' action.
To get the Excel file ID, go to the Excel file in your browser, click on 'Share', then 'Copy link'. The file ID is the string of characters between 'id=' and '&amp