Automate Dynamics 365 Record Creation from Excel with Power Automate

Organizations frequently receive business data in Excel files. Instead of manually entering hundreds or thousands of records into Dynamics 365, Power Automate can automatically read Excel rows and create records in Dataverse. This automation improves efficiency, reduces manual effort, and minimizes data entry errors. In this article, we'll explore how to create Dynamics 365 records from Excel using Power Automate.

Why Import Excel Data into Dynamics 365?

Many business processes begin with Excel spreadsheets. Common examples include:

Without automation, users must manually enter records into Dynamics 365, which consumes time and increases the risk of errors.

Solution Overview

The solution uses the following components:

The workflow is as follows:

  1. Excel File
  2. Read Rows
  3. Apply to Each Row
  4. Create Dataverse Record
  5. Success Notification

Prerequisites

Before creating the flow, ensure:

Step 1: Prepare the Excel File

Create an Excel spreadsheet with your data. For example:

FirstName LastName Email
John Smith john@contoso.com
Sarah Wilson sarah@contoso.com

Crucially, convert the data into an Excel Table. Power Automate requires table-formatted data for processing.

Step 2: Create a Power Automate Flow

Create a new cloud flow in Power Automate. You can choose from several triggers, depending on your needs:

The trigger determines when the import process starts.

Step 3: Read Excel Rows

Add an action using the Excel Online (Business) connector. Select the List rows present in a table action.

Configure the action by specifying:

This action retrieves all rows from the Excel file.

Step 4: Process Each Row

Power Automate will automatically create an Apply to each control to iterate through the rows retrieved in the previous step. Each row becomes available for processing within this loop.

For each row, you can then add actions to create records. For example, you might add an action to create a Contact record in Dataverse.

The flow will continue this process until all records from the Excel file have been processed.

Step 5: Create Dataverse Record

Within the Apply to each loop, add an action using the Microsoft Dataverse connector. Select the Add a new row action.

Configure the action by specifying:

For example:

The flow will now create records automatically in Dynamics 365 based on your mappings.

Real-World Example: Customer Import Automation

Sales teams often receive customer spreadsheets. Instead of manual entry, Power Automate can:

The result is that thousands of records can be imported automatically, saving significant time and effort.

Handling Duplicate Records

A common requirement is preventing duplicate records. Before creating a new record, you can check if it already exists.

Add the List rows action from the Dataverse connector to query existing records based on a unique identifier (like an email address).

Use a Condition control:

This improves data quality and prevents duplication.

Error Handling

Implementing robust error handling is a best practice. Use Scope Actions to group actions and manage potential failures.

Create:

This allows you to track failures, log errors, and generate reports, making troubleshooting easier, improving monitoring, and increasing the overall reliability of your flow.

Common Use Cases

Best Practices

Benefits

Conclusion

Creating Dynamics 365 records from Excel using Power Automate is one of the most effective ways to automate data imports and reduce manual effort. By combining Excel Online, Dataverse, and Power Automate, organizations can build scalable solutions that improve efficiency, increase accuracy, and streamline business processes.

Whether importing leads, customers, products, or employee records, Power Automate provides a flexible and reliable approach for automated record creation.