cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Mythe
Level: Powered On

Read excel rows from sharepoint list attachment

After getting the excel attachment from share point list in the flow ,  need a way to read the excel rows.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Read excel rows from sharepoint list attachment

Hi @Mythe,

 

Could you please share a screenshot of your flow's configuration?

Do you want to retrieve rows from the Excel attachment file of an SharePoint list item?

 

Currently, there is no way to retrieve rows from the Excel attachment file of an SharePoint list item directly in Microsoft Flow. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

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

 

But you could take a try to store the Excel attachment file of an SharePoint list item into your OneDrive folder firstly, then retrieve rows from the new created Excel file using the "Get rows" action of Excel connector (Create a connection to your OneDrive service through the Excel connector), after that, delete the new created Excel file from your OneDrive folder.

 

I have made a test on my side and please take a try with the following workaround as an alternative solution:

  • Add a "When an item is created" trigger, specify Site Address and List Name.
  • Add a "Get attachments" action, specify Site Address and List Name, Id field set to ID dynamic content of the trigger.
  • Add a "Apply to each" action, input parameter set to output of the "Get attachments" action.
  • Within "Apply to each" action, add a "Get attachment content" action, specify Site Address and List Name, Id field set to ID dynamic content of the trigger, File Identifier field set to Id dynamic content of the "Get attachments" action.

         Add a "Create file" action, specify Folder Path, File Name field set to DisplayName dynamic content of the "Get attachments" action, File Content field set to Attachment Content dynamic content of the "Get attachment content" action.

 

         Add a "Get rows" action, File Name field set to Id dynamic content of the "Create file" action, Table name field set to Table1 (I assume that the data of your Excel file has been formatted as a table and the name of the Excel table is Table1).

 

        Add a "Delete file" action, File field set to Id dynamic content of the "Create file" action. 

 

Image reference:2.JPG

 

3.JPG

The flow works successfully as below:4.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.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Read excel rows from sharepoint list attachment

Hi @Mythe,

 

Could you please share a screenshot of your flow's configuration?

Do you want to retrieve rows from the Excel attachment file of an SharePoint list item?

 

Currently, there is no way to retrieve rows from the Excel attachment file of an SharePoint list item directly in Microsoft Flow. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

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

 

But you could take a try to store the Excel attachment file of an SharePoint list item into your OneDrive folder firstly, then retrieve rows from the new created Excel file using the "Get rows" action of Excel connector (Create a connection to your OneDrive service through the Excel connector), after that, delete the new created Excel file from your OneDrive folder.

 

I have made a test on my side and please take a try with the following workaround as an alternative solution:

  • Add a "When an item is created" trigger, specify Site Address and List Name.
  • Add a "Get attachments" action, specify Site Address and List Name, Id field set to ID dynamic content of the trigger.
  • Add a "Apply to each" action, input parameter set to output of the "Get attachments" action.
  • Within "Apply to each" action, add a "Get attachment content" action, specify Site Address and List Name, Id field set to ID dynamic content of the trigger, File Identifier field set to Id dynamic content of the "Get attachments" action.

         Add a "Create file" action, specify Folder Path, File Name field set to DisplayName dynamic content of the "Get attachments" action, File Content field set to Attachment Content dynamic content of the "Get attachment content" action.

 

         Add a "Get rows" action, File Name field set to Id dynamic content of the "Create file" action, Table name field set to Table1 (I assume that the data of your Excel file has been formatted as a table and the name of the Excel table is Table1).

 

        Add a "Delete file" action, File field set to Id dynamic content of the "Create file" action. 

 

Image reference:2.JPG

 

3.JPG

The flow works successfully as below:4.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.
Mythe
Level: Powered On

Re: Read excel rows from sharepoint list attachment

Hi Kris,

   Thank you for this solution. I did exactly the same, create a file in temp folder in OneDrive , read rows and delete file after.

Get File Metadata works with dynamic file identifier from Get attachment but not Get Rows .

Is it possible to update the excel and re place the excel in the Sharepint list with the updated one.

 

   Capture.PNG

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 47 members 4,880 guests
Please welcome our newest community members: