Salesforce CPQ Playground
Create a scratch org with Salesforce CPQ installed
Steps
- Clone repository
- go into the new project folder in command line
- Create Scratch org for the DX Project
- type into command line
sfdx force:org:create -f -s config/project-scratch-def.json -a dx-cpq-playground
- Get Salesforce CPQ Package ID
- Go to CPQ Installation Page
- Scroll down to the 'Package Installation Links' section
- Under Salesforce CPQ, click on the 'Production' Installation Link
- In the URL of the login page, copy the ID at the end that denotes the package ID
- it's the ID that starts with '04'
- ex. Package 214.6 has an ID of 04t610000004RhvAAE
- Install Salesforce CPQ Package
- type into command line
sfdx force:package:install --package [packageId] -w 30
- use the package id from the CPQ Installation Page as
[packageId]
- the
-w 30
denotes that installation will wait 30 minutes for the installation to complete after package is available.
- Generate Password for Scratch Org
- type into command line
sfdx force:user:password:generate
- capture username and password for Scratch org
- type into command line
- copy username and password values
- Open Scratch Org in Browser
- Authorize Calculation Service
- In Setup > Apps > Installed Packages
- Click 'Configure' next to Salesforce CPQ
- Navigate to the 'Pricing and Calculation' tab
- use scratch org username and password to login for authorization of Calculation Service
Future Improvements
- Create test data to load when creating scratch org
Known Issues