用途:当需要为 Salesforce 对象、外部网页或 Visualforce 页面创建选项卡、把导航选项卡加入应用、配置选项卡可见性与访问权限,或排查自定义选项卡部署错误时使用本技能。
主要能力:生成 CustomTab 元数据文件。根元素必须为 <CustomTab>,命名空间为 xmlns="http://soap.sforce.com/2006/04/metadata"。支持三类选项卡:对象选项卡(文件名 {ObjectApiName}.tab-meta.xml,仅允许 <customObject>true</customObject> 与 <motif>,可选 <description>,标签继承自对象);Web 选项卡(允许 <customObject>false</customObject>、<label>、<motif>、<url>、<urlEncodingKey>UTF-8,可选 <description>、<frameHeight>);Visualforce 选项卡(允许 <customObject>false</customObject>、<label>、<motif>、<page>,可选 <description>)。
使用方式:按选项卡类型套用对应元素白名单,替换占位值即可,不要增删或改名元素。对象选项卡示例:<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata"><customObject>true</customObject><motif>Custom39: Telescope</motif></CustomTab>。Web 选项卡需包含 urlEncodingKey 为 UTF-8。
限制:禁止使用 <sobjectName>、<name>、<fullName>、<apiVersion>、<isHidden>、<tabVisibility>、<type>、<mobileReady>、<urlFrameHeight>、<urlType>、<urlRedirect>、<encodingKey>、<height>、<auraComponent> 等元素;对象选项卡不得写 <label>,Web 选项卡不得写 <page>,不得使用空元素。每个选项卡应选择语义匹配且互不重复的 motif。资料未提供具体收费、价格与平台信息。