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

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
v-litu-msft
Community Support
Community Support

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.

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

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

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

 

Fabien

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (68,068)