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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel files in one dri...
Power Automate
Unanswered

Excel files in one drive to dataverse

(0) ShareShare
ReportReport
Posted on by

I want to create a flow which there will be daily upload of multiple excel files which has similar columns in my one drive business folder. Then after the files in upload to one drive, they will immediately update into a dataverse. 

 

I use one drive trigger 'when file is created (property only)' and turn off 'split on' in setting. In this case do I need to use get file content to get all the rows in the excel file?

And can you explain the solution in detail. 

Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    Hi @deerzzxdell 

     

    Check below post for your reference

    https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Import-Data-from-Excel-To-Dataverse/td-p/1388909

     

    https://piyushksingh.com/2020/07/06/power-automate-read-excel-file/

     

    You can use as below

    1. List rows present in a table

    2. Apply to for each and Add a new row - Dataverse

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @deerzzxdell ,

     

    According to your description, you want to add the excels' rows to the Dataverse.And you turn off the "Split on" options.

    So your Trigger supports fetching multiple Excel files at the same time. But according to my tests, the return value of this trigger is not the content of the file, but some information about the file:

     

    So, if we want to get the content in the corresponding excel, we still need to use Apply to each to get the data in each file, and then use Apply to each to add each row to our Dataverse.

     

    Here are the steps you can refer to :
    (1)This is my two test files:

    vxiaochenmsft_1-1697444893089.png

     

    And this is my dataverse table:

    vxiaochenmsft_2-1697444893090.png

     

    (2)My flow is like this:

    vxiaochenmsft_3-1697444893095.png

     

     

    Then we can make the data in our excels to Dataverse Table:

    vxiaochenmsft_4-1697444893096.png

     

    Best Regards,

    Wearsky

  • deerzzxdell Profile Picture
    on at

    hello, @v-xiaochen-msft thank you for providing the explanation. I still have one more question about your flow. In the first apply to each, you've use List of files as your input from previous step. But when I look through my dynamic content for that apply to each in PA, I couldn't find it. 

  • v-xiaochen-msft Profile Picture
    on at

    Hi @deerzzxdell ,

     

    Thanks for your quick response ! The first step is used the "When a file is created (properties only)" output .

    And this is the output for it and we can test in your side to see if the same as mine:

    vxiaochenmsft_0-1697593096377.png

     

    And also , you can use the " triggerOutputs()?['body']   " to get the array we need to use in this step.

     

    Best Regards,

    Wearsky

  • deerzzxdell Profile Picture
    on at

    deerzzxdell_0-1697593801300.png

    deerzzxdell_1-1697593918681.png

     

    Hello @v-xiaochen-msft This is the raw output after I ran the flow. I have uploaded 2 excel files in OneDrive but only 1 appears in the body{}

     

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @deerzzxdell ,

     

    Have you turned off the 'Split' in trigger setting?

    vxiaochenmsft_0-1697594383629.png

     

     

    Best Regards,

    Wearsky

  • deerzzxdell Profile Picture
    on at

    Thank you! I have sort out that problem now. I have another question in action List rows present in a table. 

    deerzzxdell_3-1697597237057.png

    I couldn't retrieve the value table. So I enter the custom name 'sheet1' but the flow got an error like this 

    deerzzxdell_4-1697597402884.png

    Also the output value in my Get tables is blank [] , should it be like this?

    deerzzxdell_6-1697598007090.png

    deerzzxdell_8-1697598059427.png

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @deerzzxdell ,

     

    Thanks for your quick response !

    The Table name is the Table in your Excel sheet . So you said that the "Get tables" return blank in your side , you need to check if the excel data has convert to a table in Excel:

    vxiaochenmsft_0-1697599071135.png

     

    And this is the Table Name in Excel and not the Sheet Name:

    vxiaochenmsft_1-1697599071137.png

     

     

    So you can first convert to a table and then test if you can return an table name in the "Get Tables" step:

    vxiaochenmsft_2-1697599071141.png

     

    Best Regards,

    Wearsky

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard