web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update Offline Client ...
Power Automate
Answered

Update Offline Client Availability from Yes to No with Power Automate

(0) ShareShare
ReportReport
Posted on by

I'm new to Power Automate but I'm wondering if it's possible to build a flow to update the Library Settings > Advanced Settings > Offline Client Availability (Allow items from this document library to be downloaded to offline clients) > from "Yes" to "No".

 

I'm hoping maybe this can be done using the action 'Send an HTTP request to SharePoint' and someone might have a screenshot of how to go about building this flow? Thanks!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JennC ,

     

    Please try this:

    vxiaochenmsft_0-1663213953384.png

    _api/web/lists/getbytitle('<your library name>')

     

    {
     "accept": "application/json;odata=verbose",
     "content-type": "application/json;odata=verbose",
     "X-HTTP-Method": "MERGE",
     "if-match": "*"
    }

     

    { 
     "__metadata":{"type":"SP.List"}, 
     "ExcludeFromOfflineClient":"true" 
    }

     

    Best Regards,

    Wearsky

  • JennC Profile Picture
    on at

    @v-xiaochen-msft thanks for providing this suggestion!

     

    I'm not sure if I built the flow wrong but I get the error Action 'Send_an_HTTP_request_to_SharePoint' failed (The parameter __metadata does not exist in method GetByTitle.) as per the below screenshots.

     

    JennC_0-1663215782400.png   JennC_1-1663215857253.png

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JennC ,

     

    Please check your http request header.

     

    Best Regards,

    Wearsky

  • JennC Profile Picture
    on at

    @v-xiaochen-msft I re-did the copy and paste and it worked this time, thanks so much!

     

    Would there be anyway to run this across all document libraries in a specified SharePoint site (or even the whole tenant)?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JennC ,

     

    If you want to set it for the whole site, please try this:

    vxiaochenmsft_0-1663221099448.png

    _api/web

    {
     "accept": "application/json;odata=verbose",
     "content-type": "application/json;odata=verbose",
     "X-HTTP-Method": "MERGE"
    }
    {
     "__metadata":{"type":"SP.Web"},
     "ExcludeFromOfflineClient":"false"
    }

     

    Best Regards,

    Wearsky

  • JennC Profile Picture
    on at

    @v-xiaochen-msft The flow runs successfully, but unfortunately it doesn't remove the Sync button from any of the documents libraries in the nominated SharePoint site.

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JennC ,

     

    Sorry ,my bad.

    Please use true instead of false.

    vxiaochenmsft_0-1663224574715.png

     

    Best Regards,

    Wearsky

  • JennC Profile Picture
    on at

    @v-xiaochen-msft it worked! Thanks so much! 😄

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 195 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 167

Last 30 days Overall leaderboard