Object usage report in Salesforce - get record count, last record created/modified/viewed date
5:55 PMSTEP 1:
*******
STEP 2:
Execute the batch class from developer console -> execute anonymous apex
// Dynamically exclude objects that might time out
Set<String> exclude = new Set<String>{'CombinedAttachment', 'CollaborationGroupRecord'};
ObjectMetadataReportBatch job = new ObjectMetadataReportBatch(exclude);
// We use scope size 1 to maximize the 10-second timeout limit per object
Database.executeBatch(job, 1);
STEP 3:
Go to Files and look for the generated file , the file will look like this
1 comments
Great article! Understanding object usage is a crucial first step before any cleanup or metadata changes. We recently covered a related topic on managing Salesforce custom fields and metadata more efficiently, which may be useful for anyone looking to optimise their org: https://bofc.io/manage-custom-fields-in-salesforce-create-organize-optimize/. Thanks for sharing these insights!
ReplyDelete