generating-custom-tab

Generate Salesforce Custom Tab XML metadata for object, web, and Visualforce tabs.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/sf-skills --skill generating-custom-tab-forcedotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-custom-tab
Source: https://github.com/forcedotcom/sf-skills/tree/main/skills/generating-custom-tab
Command: npx skills add https://github.com/forcedotcom/sf-skills --skill generating-custom-tab-forcedotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of building correct Salesforce Custom Tab metadata without getting deployment failures from invalid XML structure or forbidden elements.

Core Features & Use Cases

  • Generates Custom Tab metadata for object tabs, web tabs, and Visualforce tabs with strict schema compliance.
  • Validates allowed XML elements by tab type, ensuring you only include the required fields and nothing from the forbidden allowlist.
  • Helps troubleshoot deployment errors related to Custom Tab definitions, especially around namespace and element validity (for example, using <CustomTab> with the correct xmlns).

Quick Start

Use this skill to generate a Custom Tab definition for a Salesforce web tab named “Knowledge_Base” using the correct label, motif, and URL.

Frequently Asked Questions about generating-custom-tab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Salesforce custom tab metadata XML for deployment?

To create Salesforce custom tab metadata, generate a `<CustomTab>` XML element with the correct namespace and only the mandatory fields for your specific tab type to avoid deployment failures.

Why does my custom tab deployment fail with an XML namespace error in Salesforce?

Custom tab deployment fails when the `<CustomTab>` XML is missing the required Salesforce metadata namespace or includes forbidden elements specific to the tab type. Validating allowed elements against the schema resolves these errors.

What is the difference between object, web, and Visualforce custom tabs in Salesforce metadata?

Object, web, and Visualforce custom tabs in Salesforce metadata require distinct XML elements. Object tabs link to custom objects, web tabs link to external URLs, and Visualforce tabs reference Visualforce pages, each with strict allowed element lists.

Can I link an external URL in a Salesforce web tab using metadata XML?

Yes, you can link an external URL in a Salesforce web tab by generating `<CustomTab>` metadata XML. This requires specifying the correct label, motif, and URL elements while excluding forbidden fields that cause deployment failures.

What XML elements are forbidden when defining a Visualforce custom tab?

Forbidden XML elements for a Visualforce custom tab are any fields outside the allowed list for that specific tab type. Generating valid metadata requires including only mandatory elements and excluding all forbidden elements to satisfy schema compliance.

Do I need the Salesforce metadata namespace for every custom tab XML file?

Yes, the Salesforce metadata namespace is required for every custom tab XML file. Producing `<CustomTab>` XML without the correct `xmlns` causes deployment troubleshooting errors and prevents reliable navigation configuration.