platform-custom-report-type-generate
БесплатноБез исполняемых скриптовНе проверенUse to create, generate, or validate Salesforce Custom Report Type metadata. Trigger on custom report types, CRTs, cross-object reports, report builder data…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Specification
Salesforce Custom Report Type Metadata Knowledge
Overview
Custom Report Types (CRTs) define the data framework for Salesforce reports. They specify a primary object, up to 3 related objects, the relationship (join) between them, and which fields are available in the report builder.
Purpose
- Enable reporting across custom objects and custom relationships not covered by standard report types
- Curate a focused set of fields for report builders (including fields reached via lookup)
- Control inner/outer join behavior to include or exclude primary records without related records
Configuration
File extension: .reportType-meta.xml. The file basename is the report type's developer name (e.g. AccountsWithProjects.reportType-meta.xml). Each CRT is a single file, not nested under an object folder.
Key Elements
Top-level <ReportType> children:
| Element | Required | Notes |
|---|---|---|
<fullName> |
Yes | API identifier; must match the file name. Letters, numbers, underscores; must begin with a letter; no spaces; no trailing underscore; no consecutive underscores |
<label> |
Yes | Human-friendly name shown in the report type picker |
<description> |
Recommended | State the business "why" — who uses this and what they learn |
<baseObject> |
Yes | API name of the primary object (e.g. Account, Project__c). Cannot be changed after initial creation. All objects, including custom and external, are supported (external objects from API 38.0+) |
<category> |
Recommended | Report builder category — see references/category-values.md |
<deployed> |
Yes | true to expose to users; false while building/iterating |
<join> |
Conditional | Adds a related object and its join behavior. Nest further <join> blocks for deeper relationships |
<sections> |
Recommended | Groups of columns available to the report type. Though not strictly required, a report without columns isn't useful |
<sections> (group of columns) sub-elements:
| Element | Required | Notes |
|---|---|---|
<masterLabel> |
Yes | Section heading shown in the report builder |
<columns> |
Conditional | One per field exposed in the section |
<columns> (single field) sub-elements:
| Element | Required | Notes |
|---|---|---|
<field> |
Yes | Field API name (or dotted lookup-traversal path) |
<table> |
Yes | The object the field belongs to — base object name or dotted relationship path |
<checkedByDefault> |
Yes | true if the column is selected by default in the report builder |
<displayNameOverride> |
No | Custom column label shown in the report builder, overriding the field's default label |
Critical Rules (Read First)
Rule 1: If <fullName> Is Present, It Must Match the File Name
In source format, fullName is inherited from Metadata and derived from the file name, so the <fullName> element is technically optional. The repo convention is to include it. If you include <fullName>, its value must equal the file name (everything before .reportType-meta.xml) exactly — same characters, same casing, same underscores.
Wrong — file name and <fullName> differ:
- File:
account_projects.reportType-meta.xml <fullName>AccountProjects</fullName>(Mismatch: file usesaccount_projects, fullName usesAccountProjects)
Right — file name and <fullName> are identical:
- File:
AccountProjects.reportType-meta.xml <fullName>AccountProjects</fullName>
Rule 2: Join Semantics — outerJoin Controls Inclusion
Each <join> block has an <outerJoin> element that determines which primary records appear in the report:
<outerJoin> value |
Behavior | Report Builder Label |
|---|---|---|
false |
Inner join — only primary records that HAVE at least one related record | "Each 'A' record must have at least one related 'B' record" |
true |
Outer join — all primary records, with or without related records | "'A' records may or may not have related 'B' records" |
Default when unspecified: Use true (outer join) when the user wants to see all primary records regardless of children. Use false when the report only makes sense if children exist.
Rule 3: Each Object Needs Its Own <sections> Block
Every object in the CRT (primary + each joined object) must have a corresponding <sections> block that lists the fields exposed for reporting. Without a section for an object, none of its fields appear in the report builder.
<masterLabel>on each section is the section heading in the report builder<columns>entries list the fields — each with a<field>(API name) and<table>(object API name)- For fields reached via lookup, use the relationship path in
<field>(e.g.Owner.Namewith<table>set to the owning object)
Rule 4: Field API Names, Not Labels
Use exact API names for fields: standard
Установить platform-custom-report-type-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл platform-custom-report-type-generate?
Use to create, generate, or validate Salesforce Custom Report Type metadata. Trigger on custom report types, CRTs, cross-object reports, report builder data sources, exposing fields for reporting across related objects, inner vs outer joins in reports, report type categories, or deployment errors for .reportType-meta.xml files. Do NOT trigger for running, editing, or filtering existing reports; creating report folders, dashboards, or list views; or non-authoring reporting questions.
Как установить скилл platform-custom-report-type-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл platform-custom-report-type-generate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic