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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Disable attachments in...
Power Automate
Answered

Disable attachments in a SharePoint list through JSON

(0) ShareShare
ReportReport
Posted on by 23

Good Morning.

 

I greet everyone.

 

I need your help. How can I disable attachments in a SharePoint list through JSON?

 

I hope you can help me

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @jairobaleta 

     

    I am not sure if you can do it through JSON (basically where would you place the code for that) but you can surely disable attachments for a list on the advanced settings tab. Details and process here: https://sharepointmaven.com/why-you-should-never-use-sharepoint-lists-for-storing-files-and-attachments/

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    RezaDorrani Profile Picture
    12,143 on at

    Hi @jairobaleta 

     

    No option to disable attachments using JSON (site scripts)

    your best bet will be to trigger MS Flow from site script

    the flow can then update the list settings to disable attachments using send an http request action in Flow

    You would have to use rest api to update the list attachment settings

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Community Power Platform Member Profile Picture
    on at

    Hello @RezaDorrani,

    How should the flow with the REST API look like, so that I can disable the attachments ?

     

    Regards

    Herb

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard