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

update file properties on sharepoint file

Greetings.

 

I'm trying to update file properties in a Sharepoint Group Site.

The folder structure is:  /doclibrary/Jobname/JobPhotos/*.jpeg OR /doclibrary/JobName/JobReciepts/*.pdf

I've started a flow that digs down to the files, and I have confirmed it by reading the outputs in the Run History.

When I find the file, I stick the ID of the file in an array.

I then use the array to look up each file so I can modify a column.

That's where my problem comes back.  I can never find the Item from the ID.

What am I doing wrong?

 

flowquestion1.pngflowquestion2.pngflowquestion3.png

5 REPLIES 5
Super User
Super User

Re: update file properties on sharepoint file

Are you sure that you are grabbing the correct ID tag? Because you have nested loops, you probably have duplicate properties from the tag picker box, one for each level.

In the "Dynamic content" list you'll have headings and items listed under those headings. Make sure you are grabing the ID tag for the level/loop you are in.

Here's an example from one of my multiple level flows - 

MultipleTags.png

BigBeuferd
Level: Powered On

Re: update file properties on sharepoint file

@Brad_Groux ,

 

I appreciate you taking the time to reply.

 

I'm quite sure that I found the correct ID....here is the Run history...

flowquestion4.png

 

Super User
Super User

Re: update file properties on sharepoint file

I think I see the issue, you have Current item in the Id field, which is not needed. Put Id there. In an Apply to each there is no need to explicitly call each item, the loop does it for you.

IdIssue.png

BigBeuferd
Level: Powered On

Re: update file properties on sharepoint file

That was the plan originally, but alas, not an option for me, that's why I used an Arrary.  It's storing the ID's.

 

flowquestion5.png

Community Support Team
Community Support Team

Re: update file properties on sharepoint file

Hi @BigBeuferd ,

 

First, you need to know which ID you need to get from the Body of which action.

In addition, if you don't see the expected option in Dynamic content, you could use Compose to get ID value and then configure Compose in Id field.

For example, if the ID is obtained from the Apply to each 5 traversed Body, you could use the following methods to configure the field:

7.PNG

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

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,154)