Newer Version Available
Scratch Org Definition Configuration Values
Supported Editions
The Salesforce edition of the scratch org. Possible values are:
- Developer
- Enterprise
- Group
- Professional
Supported Features
You can enable these add-on features in a scratch org:
- API
- AuthorApex
- Communities
- ContactsToMultipleAccounts
- ContractApprovals
- CascadeDelete
- CustomerSelfService
- CustomApps
- CustomTabs
- DebugApex
- DefaultWorkflowUser
- ExpandedSourceTracking
- ExternalSharing (not available in Group Edition)
- ForceComPlatform
- MultiCurrency
- PersonAccounts
- SalesWave
- LightningSalesConsole
- LightningServiceConsole
- ServiceCloud
- ServiceWave
- SiteDotCom
- Sites
- StateAndCountryPicklist
Expanded Source Tracking (Beta)
Right now, Salesforce DX source tracking supports some Metadata API types but not all, as documented in Metadata Coverage. The Expanded Source Tracking beta includes these additional metadata types:
- AppMenu
- CaseSubjectParticle
- Certificate
- DataCategoryGroup
- DelegateGroup
- EclairGeoData
- EmailServicesFunction
- EmbeddedServiceBranding
- EmbeddedServiceConfig
- EmbeddedServiceLiveAgent
- GlobalValueSetTranslation
- InstalledPackage
- ManagedTopics
- Package
- PersonalJourneySettings
- Portal
- ProfilePasswordPolicy
- ProfileSessionSetting
- SearchSettings
- SocialCustomerServiceSettings
- StandardValueSetTranslation
- SynonymDictionary
- Territory2Settings
- TopicsForObjects
Because there isn’t a direct correlation between a Setup page and each Metadata API type, source tracking doesn’t always work exactly as you expect. For instance, when you update or save something through a Setup page, some changes aren’t tracked via force:source:status or force:source:pull.
To enable Expanded Source Tracking:
- Open your Dev Hub org.
- From Setup, enter Dev Hub in the Quick Find box, and select Dev Hub.
- Click Enable Expanded Source Tracking (Beta).
- Add the ExpandedSourceTracking feature to your scratch org
definition
file.
Supported Org Preferences
Org preferences are settings that a user can configure in the org. For example, these preferences control which Chatter, Knowledge, and Opportunities settings are enabled, among many others. These settings are enabled (or disabled) in the orgPreferences section of the configuration file, in JSON format.
You can set the following org preferences in the configuration file. See the Metadata API Developer Guide for descriptions of the supported settings.
General Settings
- AnalyticsSharingEnable
- AsyncSaveEnabled
- ChatterEnabled
- DisableParallelApexTesting
- EnhancedEmailEnabled
- EventLogWaveIntegEnabled
- LoginForensicsEnabled
- NetworksEnabled
- NotesReservedPref01
- OfflineDraftsEnabled
- PathAssistantsEnabled
- S1DesktopEnabled
- S1EncryptedStoragePref2
- S1OfflinePref
- SelfSetPasswordInApi
- SendThroughGmailPref
- SocialProfilesEnable
- Translation
- VoiceEnabled
Account Settings
- IsAccountTeamsEnabled
- ShowViewHierarchyLink
Activities Settings
- IsActivityRemindersEnabled
- IsDragAndDropSchedulingEnabled
- IsEmailTrackingEnabled
- IsGroupTasksEnabled
- IsMultidayEventsEnabled
- IsRecurringEventsEnabled
- IsRecurringTasksEnabled
- IsSidebarCalendarShortcutEnabled
- IsSimpleTaskCreateUIEnabled
- ShowEventDetailsMultiUserCalendar
- ShowHomePageHoverLinksForEvents
- ShowMyTasksHoverLinks
Contract Settings
- AutoCalculateEndDate
- IsContractHistoryTrackingEnabled
- NotifyOwnersOnContractExpiration
Entitlement Settings
- AssetLookupLimitedToActiveEntitlementsOnAccount
- AssetLookupLimitedToActiveEntitlementsOnContact
- AssetLookupLimitedToSameAccount
- AssetLookupLimitedToSameContact
- IsEntitlementsEnabled
- EntitlementLookupLimitedToActiveStatus
- EntitlementLookupLimitedToSameAccount
- EntitlementLookupLimitedToSameAsset
- EntitlementLookupLimitedToSameContact
Forecasting Settings
- IsForecastsEnabled
Ideas Settings
- IsChatterProfileEnabled
- IsIdeaThemesEnabled
- IsIdeasEnabled
- IsIdeasReputationEnabled
Knowledge Settings
- IsCreateEditOnArticlesTabEnabled
- IsExternalMediaContentEnabled
- IsKnowledgeEnabled
- ShowArticleSummariesCustomerPortal
- ShowArticleSummariesInternalApp
- ShowArticleSummariesPartnerPortal
- ShowValidationStatusField
Live Agent Settings
- IsLiveAgentEnabled
Marketing Action Settings
- IsMarketingActionEnabled
Name Settings
- IsMiddleNameEnabled
- IsNameSuffixEnabled
Opportunity Settings
- IsOpportunityTeamEnabled
Order Settings
- IsNegativeQuantityEnabled
- IsOrdersEnabled
- IsReductionOrdersEnabled
Personal Journey Settings
- IsExactTargetForSalesforceAppsEnabled
Product Settings
- IsCascadeActivateToRelatedPricesEnabled
- IsQuantityScheduleEnabled
- IsRevenueScheduleEnabled
Quote Settings
- IsQuoteEnabled
Search Settings
- DocumentContentSearchEnabled
- OptimizeSearchForCjkEnabled
- RecentlyViewedUsersForBlankLookupEnabled
- SidebarAutoCompleteEnabled
- SidebarDropDownListEnabled
- SidebarLimitToItemsIownCheckboxEnabled
- SingleSearchResultShortcutEnabled
- SpellCorrectKnowledgeSearchEnabled