I think you should indicate the number of licenses you want to emulate by adding an integer (e.g. FieldService:2
) as shown in my "features" array below. Also note the block of "fieldServiceSettings"
too
{
"orgName": "Core Scratch",
"sourceOrg": "<< MY SHAPE ID >>",
"features": ["FieldService:2","Communities","Sites","MarketingUser","ServiceCloud","SalesUser","ServiceUser","ContactsToMultipleAccounts"],
"description":"Customizations for Accounts, Leads, Contacts, Location, Opportunity with custom Territory Mgt. and Field Services",
"adminEmail": "[email protected]",
"settings":
{
"fieldServiceSettings": {
"fieldServiceOrgPref": true ,
"doesShareSaWithAr":true,
"serviceAppointmentsDueDateOffsetOrgValue":7,
"enableWorkOrders":true
},
"accountSettings": {
"enableRelateContactToMultipleAccounts": true
},
"emailIntegrationSettings":{
"enableContactAndEventSync": true,
"enableProductivityFeatures": true,
"doesGmailStayConnectedToSalesforce": true,
"enableOutlookIntegration": true,
"enableGmailIntegration": true,
"isLayoutCustomizationAllowed": true,
"doesEmailLogAsEmailMessageInOutlook": false,
"shouldUseTrustedDomainsList": false,
"enableEmailTrackingInMobile": true,
"enableSupplementalContactInfoInMobile": false,
"enableEngageForOutlook": true
},
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
},
"pathAssistantSettings": {
"pathAssistantEnabled": true
},
"chatterSettings": {
"enableChatter":true
},
"apexSettings": {
"enableCompileOnDeploy": false
}
}
}
FieldServiceSettings
is available via Metadata API and thence also in thesettings
portion of the SFDX config - I suspect you need to setfieldServiceOrgPref
totrue
to actually activate the feature, while thefeatures
entry just makes it available.