cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bizzo
Kudo Kingpin
Kudo Kingpin

When Excel file is uploaded to SharePoint, parse file, create rows in a SharePoint list

A customer wants to have their agents upload Excel files to a Document library in SharePoint. When a file is uploaded, the contents of the file should be parsed, and for each line in the file a new row is inserted into a SharePoint list to be looked at and processed. Each file represents a unique "event", and the customer wants to keep these files/events separate in the Document library.

 

  1. Can't seem to "Get rows" from a file in SharePoint.
  2. Mapping Excel columns only seems to work with a specific file in a specific place.

Any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Bizzo,

 

Sorry but I don't quite get what you want. About "for each line in the file a new row is inserted into a SharePoint list to be looked at and processed", did you mean that you want all the rows in the newly uploaded file to be inserted to SP list as items? If so, I'm afraid that this cannot be achieved in flow. As the file uploaded in SharePoint library will be considered as a whole file and you cannot parse it. The Excel-Get rows action is not available with SharePoint library connector. 

 

If you really need this, please consider to post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Mona Li

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

View solution in original post

5 REPLIES 5
v-monli-msft
Community Support
Community Support

Hi @Bizzo,

 

Sorry but I don't quite get what you want. About "for each line in the file a new row is inserted into a SharePoint list to be looked at and processed", did you mean that you want all the rows in the newly uploaded file to be inserted to SP list as items? If so, I'm afraid that this cannot be achieved in flow. As the file uploaded in SharePoint library will be considered as a whole file and you cannot parse it. The Excel-Get rows action is not available with SharePoint library connector. 

 

If you really need this, please consider to post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Mona Li

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

View solution in original post

Hi @v-monli-msft,

 

Thank you for the reply. You understood correctly. I think I will put that in as a new Flow idea, but I think I have a bit of a complicated (but not completely unreasonable) workaround to make this happen. I'll try and test out my workaround and post it here if it works.

 

Thanks again,

Jason

This isn't a solution. Do you know why it was marked as the solution? 

Bizzo

GetRows works fine in OneDrive4Business. As a workaround, you can copy the Excel file from Sharepoint to OD4B.

I am using this trick in one of my flows.

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@v-monli-msftPlease unmark your post as a solution. It is not one, and OP confirms that.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (2,560)