Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [scratch-org-definition-file]

A scratch org definition file is a JSON file that specifies a shape from which the scratch org is created. That is: it contains which edition of Salesforce the org will run, which features it has enabled, and its language.

Filter by
Sorted by
Tagged with
1
vote
1answer
25 views

Is there a way to disable the 'Register Your Mobile Phone Number" popup from showing when logging into newly created scratch orgs?

We are using scratch orgs for automated testing. The challenge here is with every newly created scratch org, on first login you are presented with the "Register Your Mobile Phone" modal, that you ...
1
vote
1answer
22 views

Activate WorkOrder object with project-scratch-def.json file

I'm trying to define my project-scratch-def.json file to enable the standard WorkOrder object, it appears the object is enabled under the Field Service section of the setup menu. I added the ...
0
votes
0answers
11 views

getting Error-ERROR running force:org:create: The request to create a scratch org returned an unexpected status

getting below error while creating scratch org- ERROR running force:org:create: The request to create a scratch org returned an unexpected status I am using this command- sfdx force:org:create -f ...
0
votes
0answers
47 views

Salesforce DX - Scratch org definition file - Failed to deploy settings with territory2 activated

I'm trying to create a scratch org using the scratch org definition file below: { "orgName": "Demo Company", "edition": "Enterprise", "features": [ "Communities", "ServiceCloud", "...
3
votes
1answer
78 views

Salesforce DX - Scratch org definition file - Incorrect documentation

I'm desperately trying to configure the creation of scratch org using the scratch org definition file. I rely on the following documentation: https://developer.salesforce.com/docs/atlas.en-us....
1
vote
0answers
37 views

Cannot get territory2Settings in a Winter '20 Scratch Org

I couldn't get this to work for the current '19 org either, fwiw According to the Metadata coverage report, I'm supposed to be able to use territory 2 features with this bit of sample scratch ...
0
votes
1answer
33 views

Not able to get objects,classes and visual fore pages into scratch org

I have a developer edition (with devhub enabled) of salesforce and I treid to create the SFDX project using visual code. So far I am able to do following successfully Create a new project with ...
0
votes
1answer
41 views

What are the correct steps to create Scratch Orgs with custom objects

I am trying to create a scratch org based on existing DEV sandbox. The problem is that I get a bunch of errors when trying to push the code into the scratch org: Invalid type: Quote (13:9) Invalid ...
1
vote
0answers
64 views

How can I activate Field Service Lightning automatically on scratch org creation?

Salesforce's documentation states that you can install FSL (and activate related objects, such as Work Order) using the scratch org definition file: { ... "features": ["FieldService"], ......
4
votes
1answer
147 views

Scratch Org project-scratch-def.json features: do they matter for Enterprise and Developer Editions?

Does the features property matter in the project scratch org I have messed around adding features from documentation on Scratch Org Definition File, but it doesn't seem to impact the scratch org ...
1
vote
0answers
17 views

How to enable End User Languages, when creating a scratch org

I work on a multi language application. While I can find documentation on how to enable the translation workbench in a scrtach org definition file, how do I 'Enable End User Languages' and setup the ...
0
votes
1answer
74 views

SFDX scratch org definition

Account.ChannelProgramLevelName: Could not resolve standard field's name.,Account.ChannelProgramName: Could not resolve standard field's name.,Account.IsPartner: Could not resolve standard field's ...
0
votes
0answers
25 views

Is the Metadata Coverage Report broken? Sample scratch definitions for each type show almost nothing

Aren't we supposed to be able to see a "sample scratch definition" from the MetaData Coverage report? I found this screenshot featured on this developer.salesforce.com page explaining how to switch ...
8
votes
2answers
240 views

Defer Sharing Calculation - Scratch org issue?

I know there is possibility to turn on this feature using Scratch Org config file. { "orgName": "Scratch1", "language": "en_US", "edition": "Enterprise", "features": ["Entitlements","MultiCurrency", "...
6
votes
1answer
139 views

Scratch-org Definition: exceeded the allowed number of fields to track on a given entity

I'm having issues defining a scratch org that matches our production org. In our production and sandbox instances, we have implemented Salesforce's Field Audit Trail product. This allows us to have ...
7
votes
1answer
189 views

Scratch org was created with entitlements enabled, but pulling the source results in entity not found?

I created a scratch org with the following definition file: { "orgName": "Company, Inc", "edition": "Enterprise", "features": ["PersonAccounts", "ServiceCloud"], "settings": { "...