I recently had the honor of contributing a new command to the excellent open source SFDX Hardis project. Thanks to Nicolas Vuillamy ๐ฆ! ๐
โญ sf hardis:doc:object-field-usage
The command exposes field population and data completeness for one or more Salesforce objects. It is designed to answer a common question: which fields are actually populated, and at what rate.
What it does in practice:
๐ Runs per-field counts using WHERE field != null
๐ Reports population rates per field so unused or weakly populated fields are easy to spot
๐ Outputs CSV and XLSX reports and prints a summary table to the console
You can target a specific org connection, analyze multiple sObjects in one run, or focus on a single object with selected fields (this will add information about field value distributions).
There used to be a free package exchange app named FieldTrip but it is no longer free after RingLead/ZoomInfo purchased it.
This should help fill that gap and useful when preparing for refactors, cleaning up technical debt, or planning migrations where data completeness matters.
Release notes:
https://lnkd.in/gStsGqSF
Command documentation:
https://lnkd.in/gHYPAaB4
Tomorrow I will post about a related tool I built on the browser side for similar analysis directly inside a logged-in Salesforce session.
