次のような場合に使用: ユーザーがSalesforceのカスタムタブ(アプリケーション内の独立したページ領域)を作成または設定する必要がある場合。 ユーザーが以下の内容に言及したときに起動してください: - タブ、ナビゲーションタブ、オブジェクトタブ、ウェブタブ - Visualforceタブ、Lightningコンポーネントタブ - アプリページタブ、タブの設定 また、ユーザーが次のことを望む場合にも使用してください: - カスタムオブジェクトにナビゲーション(移動機能)を追加する - 外部コンテンツ用のタブを作成する - Lightningページのタブを設定する カスタムタブに関わるあらゆる作業では、常にこのスキルを使用してください。
Use this skill when users need to create or configure Salesforce Custom Tabs. Trigger when users mention tabs, navigation tabs, object tabs, web tabs, Visualforce tabs, Lightning component tabs, app page tabs, or tab configuration. Also use when users want to add navigation to custom objects, create tabs for external content, or set up Lightning page tabs. Always use this skill for any custom tab work.
次のような場合に使用してください:
Salesforceアプリケーション内で、オブジェクト、ウェブコンテンツ、またはVisualforceページへのナビゲーション用のカスタムタブです。
true、その他の場合はfalseルート要素は常に<CustomTab>でなければなりません(<Tab>ではありません)。 XMLネームスペースはxmlns="http://soap.sforce.com/2006/04/metadata"である必要があります。
以下にリストされている要素のみが有効です。このリストにない要素はデプロイエラーを引き起こします。
| タブの種類 | 許可されている要素(これら以外は不可) |
|---|---|
| オブジェクトタブ | <customObject>(必須、trueに設定)、<motif>(必須)、<description>(オプション) |
| ウェブタブ | <customObject>(必須、falseに設定)、<label>(必須)、<motif>(必須)、<url>(必須)、<urlEncodingKey>(必須、UTF-8に設定)、<description>(オプション)、<frameHeight>(オプション) |
| Visualforceタブ | <customObject>(必須、falseに設定)、<label>(必須)、<motif>(必須)、<page>(必須)、<description>(オプション) |
<sobjectName>、<name>、<fullName>、<apiVersion>、<isHidden>、<tabVisibility>、<type>、<mobileReady>、<urlFrameHeight>、<urlType>、<urlRedirect>、<encodingKey>、<height>、<auraComponent>
また禁止:
<label>(オブジェクトタブはカスタムオブジェクトからラベルを継承します)<page>(Visualforceタブのみ対象)<page></page>や<description></description>など空の要素{ObjectApiName}.tab-meta.xml(例:Space_Station__c.tab-meta.xml)<customObject>true</customObject>と<motif><?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom39: Telescope</motif>
</CustomTab>
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom98: Truck</motif>
</CustomTab>
<sobjectName>、<name>、<fullName>、<label>を追加しないでください:<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<sobjectName>Space_Station__c</sobjectName> <!-- デプロイエラー -->
<label>Space Station</label> <!-- オブジェクトタブではデプロイエラー -->
<customObject>true</customObject>
<motif>Custom57: Desert</motif>
</CustomTab>
{TabName}.tab-meta.xml(例:Knowledge_Base.tab-meta.xml)<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>false</customObject>
<description>置き換え対象:説明</description>
<frameHeight>600</frameHeight>
<label>置き換え対象:ラベル</label>
<motif>置き換え対象:アイコン</motif>
<url>置き換え対象:URL</url>
<urlEncodingKey>UTF-8</urlEncodingKey>
</CustomTab>
<description>要素はオプション — 不要な場合は削除してもよいですが、他に何も追加しないでください。{TabName}.tab-meta.xml(例:Custom_Page_Tab.tab-meta.xml)<customObject>false</customObject>、<label>、<motif>、<page><?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>false</customObject>
<label>Custom Page</label>
<motif>Custom46: Computer</motif>
<page>CustomPage</page>
</CustomTab>
<customObject>true</customObject>と<motif>のみを含める必要があります — それ以外は何も含めないでください<customObject>false</customObject>、<label>、<motif>、<url>、<urlEncodingKey>のみを含む必要があります。オプションで<description>、<frameHeight>を含める可能性があります — それ以外は何も含めないでください<isHidden>、<tabVisibility>、<type>、<mobileReady>、空の要素を決して含めないでくださいUse this skill when you need to:
Custom tabs for navigating to objects, web content, or Visualforce pages within Salesforce applications.
true for custom object tabs, false for all others.The root element MUST always be <CustomTab> (NOT <Tab>). The XML namespace must be xmlns="http://soap.sforce.com/2006/04/metadata".
Only the elements listed below are valid. Any element not on this list WILL cause a deployment error.
| Tab Type | ONLY these elements are allowed (nothing else) |
|---|---|
| Object tabs | <customObject> (required, set to true), <motif> (required), <description> (optional) |
| Web tabs | <customObject> (required, set to false), <label> (required), <motif> (required), <url> (required), <urlEncodingKey> (required, set to UTF-8), <description> (optional), <frameHeight> (optional) |
| Visualforce tabs | <customObject> (required, set to false), <label> (required), <motif> (required), <page> (required), <description> (optional) |
<sobjectName>, <name>, <fullName>, <apiVersion>, <isHidden>, <tabVisibility>, <type>, <mobileReady>, <urlFrameHeight>, <urlType>, <urlRedirect>, <encodingKey>, <height>, <auraComponent>
Also forbidden:
<label> on object tabs (object tabs inherit their label from the custom object)<page> on web tabs (only for Visualforce tabs)<page></page> or <description></description>{ObjectApiName}.tab-meta.xml (e.g., Space_Station__c.tab-meta.xml)<customObject>true</customObject> and <motif><?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom39: Telescope</motif>
</CustomTab>
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom98: Truck</motif>
</CustomTab>
<sobjectName>, <name>, <fullName>, or <label>:<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<sobjectName>Space_Station__c</sobjectName> <!-- DEPLOYMENT ERROR -->
<label>Space Station</label> <!-- DEPLOYMENT ERROR on object tabs -->
<customObject>true</customObject>
<motif>Custom57: Desert</motif>
</CustomTab>
{TabName}.tab-meta.xml (e.g., Knowledge_Base.tab-meta.xml)<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>false</customObject>
<description>REPLACE_WITH_DESCRIPTION</description>
<frameHeight>600</frameHeight>
<label>REPLACE_WITH_LABEL</label>
<motif>REPLACE_WITH_MOTIF</motif>
<url>REPLACE_WITH_URL</url>
<urlEncodingKey>UTF-8</urlEncodingKey>
</CustomTab>
<description> element is optional — you may remove it if not needed, but do not add anything else.{TabName}.tab-meta.xml (e.g., Custom_Page_Tab.tab-meta.xml)<customObject>false</customObject>, <label>, <motif>, <page><?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>false</customObject>
<label>Custom Page</label>
<motif>Custom46: Computer</motif>
<page>CustomPage</page>
</CustomTab>
<customObject>true</customObject> and <motif> — nothing else<customObject>false</customObject>, <label>, <motif>, <url>, <urlEncodingKey>, and optionally <description>, <frameHeight> — nothing else<isHidden>, <tabVisibility>, <type>, <mobileReady>, or empty elements原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。