To calculate the usage-based pricing for Salto, Salto needs to count the number of metadata records in your org.
The easiest and most accurate way is to sign up for Salto and let Salto do the calculation. This is the recommended option. Learn how
If you want to calculate the number of records before signing up to Salto, ask someone from your Salesforce team to follow these instructions:
Count Discrepancies
Exclude managed packages that are not CPQ-related to get an accurate estimate, because Salto does not manage them by default. For CPQ-related elements - refer to the 'Counting CPQ elements' section.
It's important to note that Salto, by default, excludes additional elements, resulting in a potentially lower count of records by Salto compared to your own count. For instance, the script below counts the following records, which should be excluded when using Salto's default settings:
Personal Email Templates.
Product2, Pricebook2, and PricebookEntry, that are not referenced by other elements.
Counting Manually
Custom Metadata Types and Custom Objects can easily be counted manually:
Custom Metadata Type
To access the Custom Metadata Types page, from Setup, enter Custom Metadata Types in the Quick Find box, then select Custom Metadata Types
Count the number of custom metadata types
Custom Object
Open the Object Manager
Scroll down to the bottom of the table
The label at the top displays the precise count of items:
Counting with the Developer Console
For the rest of the metadata types, Salto recommends counting them by using the following pre-built script in the developer console.
This script is safe! All it does is read/count how many records exist per metadata type. The script does not modify/edit/add anything to your org. All the data also stays in your org.
Developer Console
Click the Setup menu and open the Developer Console:
Once opened, click the Debug menu and then Open Execute Anonymous Window:
Enter the following code in the new window: https://github.com/salto-io/salesforce-element-count/blob/main/CountMetadata.cls
Check Open Log and then click Execute:
Click the Debug Only checkbox:
You should now see the count of your metadata records:
Counting CPQ elements
If you want to use Salto for CPQ, you also need to count the number of CPQ elements. For this, we have an additional script, which you can run using the same steps described above: https://github.com/salto-io/salesforce-element-count/blob/main/CountCPQRecords.cls
The script will give a breakdown of how many records per CPQ object you have, and a total.
This includes Product2
, Pricebook
, PricebookEntry
and any objects from CPQ Advanced Approvals.