cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Update a SharePoint custom field property with a HTTP REquest

Hi,

 

I need to update a custom field property on en existing folder in SharePoint. I use an HTTP Request action for that but I cannot find the right parameter for the REST call:

 

2019-09-02 20_08_06-Edit your flow _ Microsoft Flow.png

I cannot use the "Update item" trigger since I already have another trigger (MS Forms).

 

Can anyone help me to find the correct parameters for this HTTP Request action?

 

Thank you!

Fab

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Update a SharePoint custom field property with a HTTP REquest

Hi @Fab2000,

 

You can use the Get Files (properties only) action, the Filter array to find the folder named your Destination folder's name.

Then add the Apply to each to put the output of the filter, use the item()?['ID'] to get the ID of the folder.

Annotation 2019-09-03 180207.png

Best Regards,
Community Support Team _ Lin Tu
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

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Update a SharePoint custom field property with a HTTP REquest

Hi @Fab2000,

 

It may have some error with the Body, it should be "__metadata" : { "type": "SP.Data.LibraryNameItem"}.

About how to work with a folder with Http request, you could refer to this document:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest#...

 

And there is some easier way to do with this, you can use the Update file properties action.

Flow Configuration:

Annotation 2019-09-03 111637.pngRun Result:

Annotation 2019-09-03 111827.png

 

Annotation 2019-09-03 111854.png

 

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

Highlighted
Regular Visitor

Re: Update a SharePoint custom field property with a HTTP REquest

Hi, 

 

Thank you for the prompt reply. 

 

  1. In my scenario, I don't have the folder ID since it is created automatically when the flow creates a Teams channel. Is there a way to grab the folder ID based on the folder name?
  2. If there is no way to find the folder ID, I'll try the HTTP Request. In the example you gave, how can I find the "real" odata.type to be used in the Body?

Thank you,

Fab

Highlighted
Community Support
Community Support

Re: Update a SharePoint custom field property with a HTTP REquest

Hi @Fab2000,

 

You can use the Get Files (properties only) action, the Filter array to find the folder named your Destination folder's name.

Then add the Apply to each to put the output of the filter, use the item()?['ID'] to get the ID of the folder.

Annotation 2019-09-03 180207.png

Best Regards,
Community Support Team _ Lin Tu
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

Highlighted
Regular Visitor

Re: Update a SharePoint custom field property with a HTTP REquest

Thank you very much, it works as described in your post!

 

Fabien

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (5,630)