+ Start a Discussion

SFDX Scratch Org and Permission Set License

For our project, we've setup Campaign Influence for Lightning Experience, which enables the CampaignInfluence2 object in the org.

To access this object, even as a System Admin deploying layout changes, the user seems to need the "Sales User" or "CRM User" permission set license, then a permission set enabling "Campaign Influence".

In my scratch org, I don't see either of these Permission Set Licenses available.

How can I access CampaignInfluence2 in a scratch org?
Note: the fix for this was around our json for our scratch org to include SalesUser
Somya TiwariSomya Tiwari
Hi Andrew,

When you create SFDX Scratch Org you will need to include the SalesUser. The easy way is to add SalesUser in Features, see the example below: 
  "orgName": "Acme",
  "edition": "Enterprise",
  "features": ["ServiceCloud", "ServiceUser"],
  "settings": {
    "orgPreferenceSettings": {
      "s1DesktopEnabled": true
Find more information about same here : https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm