Newer Version Available

This content describes an older version of this product. View Latest

OrgPreferenceSettings

Represents the unique org preference settings in a Salesforce org.

This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

OrgPreferenceSettings values are stored in the OrgPreference.settings file in the settings directory. The .settings files are different from other named components because there is only one settings file for each settings component.

Version

OrgPreferenceSettings components are available in API version 37.0 and later.

Fields

Field Name Field Type Description
preferences OrganizationSettingsDetail[] The preferences associated with the org settings. Possible values are:
  • AnalyticsSharingEnable (available in version 40.0 and later)
  • AsyncSaveEnabled (available in version 40.0 and later)
  • ChatterEnabled
  • EnhancedEmailEnabled
  • EventLogWaveIntegEnabled
  • LoginForensicsEnabled
  • NetworksEnabled (available in version 40.0 and later)
  • NotesReservedPref01
  • OfflineDraftsEnabled
  • PathAssistantsEnabled
  • S1DesktopEnabled
  • S1EncryptedStoragePref2
  • S1OfflinePref
  • ScratchOrgManagementPref (available in version 41.0 and later)
  • SendThroughGmailPref
  • SocialProfilesEnable
  • Translation (available in version 40.0 and later)
  • VoiceEnabled

OrganizationSettingsDetail

Field Name Field Type Description
settingName string The name of the setting. For example, “S1EncryptedStoragePref2.”
setttingValue boolean Indicates whether the setting is enabled (true) or not (false).

Declarative Metadata Sample Definition

The following is an example of a OrgPreferenceSettings component.