cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

How can I read the multiple excel files and read the dynamic excel tables and rows?

HI,

 

Currently, I am working on one of the requirement that, I need to import data in sharepoint list from multiple excel sheet located on one drive.

I need to make sure that data will not be duplicate.

I have already created flow based on the prefined table from predificed excel sheet and successfully imported data into the list.

 

But my problem is that how can I read rows from the dynamic tables from the excel sheet ?

2 REPLIES 2
Community Support
Community Support

Hi @akt,

 

Do the multiple excel files contain duplicated data?

Do the multiple excel files have same data structure?

Further, does the OneDrive folder have any other type files except excel files?

I assume that multiple excel files don’t contain duplicated data and have same data structure, please take a try with the following workaround:

  • Choose a proper trigger, here I use Flow Button trigger.
  • Add “List files in folder” action, specify Folder of OneDrive.
  • Add a “Apply to each”, input parameter set to output of “List files in folder” action.
  • Within “Apply to each”, add a Condition, left input box set to Name content of “List files in folder” action, right input box set to .xlsx, in middle drop down, choose contains.
  • Within “If/yes” branch of Condition, add “Get rows” action, File name set to Id content of output of “List files in folder” action, Table name set to Table1.

Note: Format excel file with default table name—Table1.

  • Add a “Apply to each 2” action, input parameter set to output of “Get rows” action.
  • Within “Apply to each 2”, add “Create item” action.

Image reference:7.JPG

 

8.JPG

 The flow works successfully as below:9.JPG

 

10.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank You for replying my message.

 

No, Multiple excel files do not contain duplicate data.

Yes, Multiple excel files have same data structure.

No, It will not contain other types of file but How I can get files which are modified today?

 

Actually, I have many tables\sheets with same table structure in one excel sheet. And there will be many excel files, How I can get the sheet name from the excel sheet and rows from the same? 

 

Once this excel sheet has been already imported, then it will not consider in next lot except somebody has added new sheet\table in that excel file.

  

I have already tried with for each loop. But I didn't get row values. I also need to filter blank rows from the excel sheet.

Please find below screen shot.

 

Multi Items flowMulti Items flow

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (27,430)