Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 uses account_projects, fullName uses AccountProjects)

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.Name with <table> set to the owning object)

Rule 4: Field API Names, Not Labels

Use exact API names for fields: standard

Полный SKILL.md на GitHub

Установить platform-custom-report-type-generate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/AccountProjectsWithTasks.reportType-meta.xmlexamples/AccountsWithIndustry.reportType-meta.xmlexamples/AccountsWithProjects.reportType-meta.xmlreferences/category-values.mdreferences/errors-and-troubleshooting.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить platform-custom-report-type-generate с