Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Update a SharePoint custom field property with a HTTP REquest

(0) ShareShare
ReportReport
Posted on by 6

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

  • Fab2000 Profile Picture
    Fab2000 6 on at
    Re: Update a SharePoint custom field property with a HTTP REquest

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

     

    Fabien

  • Verified answer
    v-litu-msft Profile Picture
    v-litu-msft on at
    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.

  • Fab2000 Profile Picture
    Fab2000 6 on at
    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

  • v-litu-msft Profile Picture
    v-litu-msft on at
    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#working-with-folders-by-using-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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard

Featured topics