SLAM_record_counts
Overview
Retrieves record counts for all Salesforce objects and stores them in the provided table name. The counts may lag behind real time, because Salesforce computes and caches them on a schedule.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
@table | VARCHAR | Required | Target SQL table name for results |
@exists_action | VARCHAR(20) | NULL | Controls the behavior when the destination table name, specified by @table is already used. If NULL, uses the value from SLAM_Settings.default_exists_action (defaulted to 'drop' during initial setup).Valid options:
|
Usage Examples
EXEC dbo.SLAM_record_counts @table = 'Object_Record_Counts';
SELECT * FROM Object_Record_Counts;
With explicit exists action:
EXEC dbo.SLAM_record_counts
@table = 'Object_Record_Counts',
@exists_action = 'rename';