Used to calculate and save up to 7,000 Salesforce CPQ quotes from APEX. This solution leverages the Salesforce CPQ APIs to read, calculate, and save quotes.
- Clone this repo
- Install the SFDX CLI
- Connect to your org:
sfdx force:auth:web:login - Enter your org's credential, login, then dismiss the browser
- Set your org as the default org:
sfdx force:config:set defaultdevhubusername=[your dev org's user name] - Verify that your org is now default:
sfdx force:org:list - Your org should show up with a (D) in front of it
Deploy the code from this repo
- Convert source to mdapi package format:
sfdx force:source:convert -d src - Deploy source to org:
sfdx force:mdapi:deploy -d src - Monitor the deployment status:
sfdx force:mdapi:deploy:report
You're done once status is succeeded
Id[] quoteIds; // initialize this list up to 7,000 SBQQ__Quote__c ids
CPQBatchCalculator.start(quoteIds);