1

I have created scratch org and installed B2B package into it. I`m trying to assign Access B2B Commerce Admin Settings PM but there is an error:

Can't assign permission set Access B2B Commerce Admin Settings to user User User. The user license doesn't allow the permission: Custom Permission B2BCommerceAdmin is not valid for this Permission Set.

In Sandbox it`s fine, there is B2B Commerce license for Permission Set, as described here: https://help.salesforce.com/articleView?id=b2b_commerce_admin_perm.htm&type=5

But in scratch org, this license is missing. enter image description here I thought, that Scratch Orgs are like Sandboxes...

Is there any feature for B2B like CPQ that I can enable in project-scratch-def.json? I did not find any here: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm

My json file:

{
  "orgName": "B2B Company",
  "edition": "Developer",
  "features": ["Communities","StateAndCountryPicklist"],
  "settings": {
    "lightningExperienceSettings": {
        "enableS1DesktopEnabled": true
    },
    "communitiesSettings": {
        "enableNetworksEnabled": true
    },
    "mobileSettings": {
        "enableS1EncryptedStoragePref2": false
    }
  } 
}

Has anyone tried that yet? Thanks in advance.

2 Answers 2

2

You cannot use scratch orgs with B2B CloudCraze because, as you noticed, the license is -unfortunately- not available in scratch orgs.

So, you should use developer orgs or sandboxes for your development needs.

2
1

The license is now available, as outlined here: https://dreamevent.secure.force.com/articleView?id=release-notes.rn_scratch_org_b2b_commerce.htm&type=5&release=230

You must log in to answer this question.

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