cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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? 

Dual Super User III
Dual Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (5,755)