The Metadata Quality Report in Metazoa Snapshot uses AI to evaluate Salesforce metadata content, categorize quality issues, and prepare remediated metadata for deployment. Admins and developers can customize checks for company standards across metadata types, including email templates, Apex classes, flows, formula fields, and validation rules.
When To Use This Report
- Find content problems such as broken email merge fields, hardcoded logic, weak documentation, or missing error handling.
- Apply company-specific quality checks to a selection of assets.
- Evaluate proposed improvements in a Developer Project before a release.
- Distribute recurring quality reports to stakeholders.
Unlike usage reports, this report evaluates content quality; unlike Apex-only static analysis, this report provides editable AI checks across multiple metadata types.
Open The Report
- Right-click a Metadata Snapshot or Developer Project item on the Snapshot desktop.
- Choose Documentation, then Metadata Quality.
Select Metadata
Select a metadata type to generate a preview. Check the boxes for the types to include on Display Report; selecting a type and checking a type serve different purposes.
Click Editing Palette to show the Metadata Quality Palette. Select an asset row and click Evaluate Quality Issues to test the checks on one asset before evaluating a larger selection.
Documentation
Read the available asset documentation for context about the selected metadata.
Metadata Note
Add business-process or policy context and click Save Note. Metadata notes supply context to relevant AI prompts.
Prompt
Choose a quality issue and adjust the evaluation description, remediation guidance, colorization rule, and category rule. Target an asset element name narrows a check to an element within the asset.
Use New Issue, Rename Issue, or Delete Issue to change the check set. Import Issues and Export Issues let teams reuse checks across orgs or clients; Default Values restores the default issues.
Click Submit to evaluate the asset. The response shows Quality Issue, Category, and Explanation.
| Column | Description |
|---|---|
| Category | A word or short phrase assigned according to the category prompt. A category can describe purpose or another classification, independently of the quality color. |
Asset Text
When available for the selected asset, this tab shows the text supplied as evaluation context.
Asset XML
Inspect the asset's XML alongside the quality findings.
Evaluate Multiple Issues
After refining checks, return to the preview and Shift-click or Control-click multiple rows. Click Evaluate Multiple Issues, then Submit, to evaluate the selection and build a heat map.
Delete Selected Issues removes selected stored quality evaluations, not Salesforce metadata assets. The evaluations can be generated again later.
Remediate
Select asset rows and click Remediate Quality Problems. On Remediate, click Submit to generate changes, then compare Original Quality Issues with Remediated Quality Issues.
Settings
In the remediation dialog, use Settings to enable the issues eligible for remediation and inspect the associated Remediation Details.
Display Report
This tab combines the checked metadata types. Rows identify assets or asset elements, and issue columns contain the generated quality findings.
- Show Missing includes assets without quality evaluations.
- Heat Maps shows more detailed quality heat maps; Color Code controls color coding.
- Show Dates adds created and last modified dates and users. These dates describe metadata history, not evaluation freshness.
- Show Links adds links that launch the Salesforce Browser.
- Clean Report removes empty report tables.
Choose Reports for tables. Clicking Dashboards reveals charts including Metadata Types By Quality Issues and Metadata Types By Total Assets. Clicking Summary reveals Metadata Quality Summary.
| Column | Description |
|---|---|
| Element Name | The element within an asset targeted by the evaluation. |
| Green, Lime, Yellow, Orange, Red | Summary counts of evaluated assets in each color-coded quality tier. |
| Green %, Lime %, Yellow %, Orange %, Red % | The proportion of evaluated assets assigned to each quality tier. |
Schedule Report
Configure a timer-based report run and send the output to Email, Slack, Content, Chatter, or another supported destination. Generate the needed quality evaluations before relying on scheduled output; report delivery alone does not establish that fresh AI evaluations were generated.
The Assistant destination records the chosen document format as Org Intelligence, replacing the previous recording on each run.
What The Results Tell You
A populated evaluation establishes that AI assessed the supplied metadata against the configured issues. Checks can address broken merge fields, spelling, hardcoded values, naming, documentation, error handling, security checks, trigger structure, or apparent test-coverage gaps.
A missing evaluation is a coverage gap, not a healthy result. Red, Orange, Yellow, Lime, and Green follow each issue's colorization rule rather than universal score thresholds; none requests no color. Read the Explanation and the prompt to understand the finding.
The usage-versus-quality chart supports these priorities:
- High usage and high quality: strategic assets.
- High usage and low quality: assets to fix first.
- Low usage and high quality: assets that need wider adoption.
- Low usage and low quality: cleanup candidates.
Quality findings do not prove actual usage, regulatory compliance, runtime correctness, or regression-test coverage. An AI finding about incomplete tests is not a measurement of executed Apex coverage.
Before deploying or removing an asset, the admin confirms the owner, business purpose, dependencies, proposed metadata changes, and required testing, and keeps an earlier snapshot for recovery. A low-quality or apparently unused asset can still support an integration, a reference built from a string at run time, or a business process outside Salesforce metadata.
Try The Report
- In a sandbox, prepare an email template named
Example_Templatewith an obvious spelling error in the body, then capture the template in a snapshot. - Open the report, select the email template metadata type, and select
Example_Template. - Open Editing Palette, click Evaluate Quality Issues, and inspect the spelling and grammar check on Prompt.
- Click Submit. Expect a populated Quality Issue with a Category and an Explanation identifying the spelling problem, rather than a missing evaluation.
- If the check misses the problem, refine the prompt and submit again. Once the check works as intended, use Evaluate Multiple Issues on additional templates.
Exports And Deployment
Right-click a report table and choose Export As CSV, Export As XLSX, Export As PDF, or Export As HTML.
After metadata changes are generated, Deploy appears. The button saves edits to the current snapshot and opens deployment tools; generating remediation alone does not change Salesforce.
A Developer Project can retain changes locally for a later release, including work in a Git-backed project. Snapshot prepares quality improvements alongside the existing release workflow; the team still controls merging, approval, and promotion.
After deployment, compare the resulting metadata with the intended changes and run the relevant functional tests. Metadata differences show changed content, not successful business behavior.
Reference
Evaluation Failures And Cancellation
If the report displays The prompt response was not valid XML., inspect the customized prompt and resubmit the evaluation. During a bulk operation, hold the Escape key to cancel. Review populated and missing evaluations before choosing the next selection.
Common Questions
How Is Metadata Quality Different From Apex Code Quality?
Metadata Quality uses editable AI checks across metadata types. Apex Code Quality uses PMD static analysis for Apex-specific findings.
Who Approves AI-Generated Metadata Fixes?
The admin or release team decides which changes to deploy. The report provides explanations and original-versus-remediated findings, but no enforced approval workflow is shown.
Does A Green Result Mean An Asset Is Safe To Delete?
No. Green reflects the configured quality rule, not usage or removal safety. Cleanup requires separate usage, dependency, and business-context evidence.
Does The Report Generate Regression Tests?
The report evaluates and remediates metadata content. Metadata comparisons can reveal changes, but this report does not demonstrate regression-test execution or measured Apex coverage.
Related Articles
- Apex Code Quality Report - inspect Apex static-analysis findings.
- Description Enrichment Report - focus specifically on metadata descriptions.
- Developer Project - retain improvements in a local folder or repository.
- Metadata Differences Report - inspect changes between snapshots or orgs.
- Deploy Metadata - validate and deploy the selected improvements.