function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
k_bentsenk_bentsen 

Global settings via API

Is it possible to check global organization settings via API? More specifically, can we check if the "Disallow HTML documents and attachments" is enabled or not? If so, how do we retrieve it?

crop1645crop1645

k_bentsen.

 

Good question, one hokey way that might work is to try and create an HTML document or attachment, and check to see if you get error: HTML_FILE_UPLOAD_NOT_ALLOWED.  If you don't get the error, rollback or delete what you just inserted.