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

Update file metadata in SharePoint with data from excel rows

Hello Cat Happy

 

My Flow is getting a folder with documents from OneDrive and creates the same files in a Document Library in SharePoint.This works fine, but I want to update all the files with metadata (after the file is created).

The metadata comes from a table in excel. The table looks like this:

 

excel.PNG

 

There is as many rows as files. So every row is data which belongs to a document.

 

My library:

doc.PNGDocument library

 

flow.PNGMy Flow

It seems like my flow updates every document with every row, which is not what I want, so something is wrong in my logic. 

 

Appreciate any answers and thoughts Cat Happy

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Update file metadata in SharePoint with data from excel rows

Hi @dogemaster , 

 

Do you have a unique identifier to update the metadata of a particular file in your excel sheet? If so, please check the screenshot below and replicate the steps: 

excelfl.png

What I am doing here is -> List the files from onedrive and create an apply to each loop with the list of these files. Now, get a row from excel sheet (this row should have a unique identifer with respect to the current file. I have considered the DisplayName of the file. So you should have a column of display name in your excel with the names of all your docs/files with the corresponding meta data). Now you create the file, get the properteies and simply update the metadata with the excel row values rspectively. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

2 REPLIES 2
Super User
Super User

Re: Update file metadata in SharePoint with data from excel rows

Hi @dogemaster , 

 

Do you have a unique identifier to update the metadata of a particular file in your excel sheet? If so, please check the screenshot below and replicate the steps: 

excelfl.png

What I am doing here is -> List the files from onedrive and create an apply to each loop with the list of these files. Now, get a row from excel sheet (this row should have a unique identifer with respect to the current file. I have considered the DisplayName of the file. So you should have a column of display name in your excel with the names of all your docs/files with the corresponding meta data). Now you create the file, get the properteies and simply update the metadata with the excel row values rspectively. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Community Support Team
Community Support Team

Re: Update file metadata in SharePoint with data from excel rows

Hi @dogemaster ,

 

I agree with the method provided by @yashag2255 . You may need a field similar to Lookup column to get the row specified in the Excel table and update the value inside to the Library.

It seems that you could use File Name as the lookup field and then find the corresponding record in the Excel table.

Please take a try.

 

Best Regards,

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

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: 211 members 2,572 guests
Please welcome our newest community members: