web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need help automating d...
Power Automate
Answered

Need help automating data import to dataverse

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I'm hoping someone might be able to help me identify the correct approach to import my data into Dataverse. 

 

Scenario:

I receive an email every morning containing data. The data arrives as an Excel file attached to the email. There are no tables in the Excel file when it arrives. Currently, this info needs to be manually copied out of the spreadsheet and pasted into other places. I'd like to eliminate the manual steps in this process using Power Automate. 

 

What I've done so far:

I built a flow that saves the Excel file to SharePoint and adds tables to the data.

 

Automate dataverse.png

 

Where I'm stuck:

I can't seem to figure out how to get the data out of Excel and into Dataverse. I'm not even sure if the connector shown above is the one I should be using to accomplish what I'm hoping to do. If it is, I'm not sure what to put in the "Row ID" field. 

 

Of note, the number of rows varies from one day to the next. I'm not sure whether this is an important consideration, but figured I'd mention it just in case.

 

Thank you very much for any insight you may be able to provide!  

 

 

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    I've you've added a Table to your Excel file then you can use List rows present in a table to get the rows from the Excel Table. Then in an Apply to each (using value from the List rows present in a table), you can use Add a new row to add rows into your Dataverse table. As soon as you select the Dataverse table you want to populate it will display the columns ready for you to add the corresponding Excel row values. See example below.

     

    grantjenkins_0-1669383730544.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much for your reply! That got me a lot closer to the finish line. The challenge I'm having now is determining how to dynamically reference the spreadsheet row values to fill in each of the columns in my Dataverse table:

     

    Automate dataverse 2.png

    I feel like it must be something simple that I'm overlooking somehow. Any tips?

  • grantjenkins Profile Picture
    11,063 Moderator on at

    You should see the fields from your List rows present in a table that you can just add directly into your Add a new row fields.

     

    Because you are using the value from your List rows present in a table as the input into the Apply to each 2, it will add a new row in Dataverse for each of the rows in your Excel Table.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    For some reason, all I seem to have to choose from are the same two options:

    Automate dataverse 3.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    After quite a bit of trial and error, I've made it a few steps further.

     

    I finally ended up grabbing the data using expressions. I couldn't seem to get the Excel file's column names to pop up under standard dynamic content no matter what I tried. The expression I landed on that ended up working was:

    outputs('List_rows_present_in_table')?['Name of Column Here']

     

    The flow now runs successfully. When I review the completed runs, I see the data I'm trying to capture listed as output values from the 'List Rows Present in Table' step. 

     

    Here's the strange part... despite the flow running successfully, it seems to only be adding blank rows to my Dataverse table rather than the data I want 😩

     

    Automate dataverse 4.png

     

    I'm not entirely sure what to make of this.

     

    Here's the last step in the flow, which is supposed to be adding a new row to the Dataverse table:

    Automate dataverse 5.png

     

    I'm not sure if it matters, but 'Identifier' is an autonumber column. 

  • grantjenkins Profile Picture
    11,063 Moderator on at

    @Anonymous The issues now looks like you don't have a loop for your List rows present in a table as you had before. So, after List rows present in a table you need to have an Apply to each that will loop over each of the rows, and within there you have your Add a new row (like you did before). You should also now see the field names appear for you to just select.

     

    grantjenkins_0-1669426538543.png

     

  • tommytables Profile Picture
    Microsoft Employee on at

    I am having the same issue.  I did use the loop as stated, It still won't give dynamic values.  I used the work-around and it saves and says it is successful when tested, but adds blank records.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard