3

Is there a way to enable Opportunity Teams in a scratch org definition file?

I tried this in my file but it didn't work.

{
    "settings": {
        "opportunitySettings": {
            "enableOpportunityTeam": true
        }
    }
}
3
  • 1
    What is the error message you are seeing? I used "opportunitySettings": { "enableOpportunityTeam": true} in my project-scratch-def.json and could see the Opportunity team enabled in my scratch org. Thanks Feb 26, 2021 at 19:57
  • @Swetha my bad, I meant to enable Opportunity Splitting via scratch org definition file. Any input on that?
    – Madhu
    Feb 28, 2021 at 21:21
  • I checked the Metadata coverage Doc (developer.salesforce.com/docs/metadata-coverage/50/…) and scratch org features doc(developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/…) but do not see any mention of enabling opportunity split setting and I believe this is not an officially supported functionality in scratch orgs currently. Mar 1, 2021 at 10:52

2 Answers 2

2

If Opportunity Splits is enabled in the source org used for Org Shape, then it comes as enabled in the scratch orgs created using this source org.

Note: Org Shape feature is still in beta

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_shape_intro.htm

1

Based on the Metadata coverage Doc and scratch org features doc there is no mention of enabling opportunity split setting on scratch org and I believe this is not an officially supported functionality in scratch orgs currently.

There is an Idea on IdeaExchange too to have this implemented.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .