Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
UiPreviewMessageTabDef
Parent Type
This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
UiPreviewMessageTabDef components have the suffix .uiPreviewMessageTabDef and are stored in the uiPreviewMessageTabDef folder.
Version
UiPreviewMessageTabDef components are available in API version 63.0 and later.
Special Access Rules
There are no additional access requirements that are specific to this type.
Fields
Declarative Metadata Sample Definition
This example is a custom Lightning web component’s HTML file.
1<template>
2 <div>A custom tab</div>
3 <div>Preview data</div>
4 <div>{previewData}</div>
5</template>Here’s the component’s JavaScript file.
1import { LightningElement, api } from "lwc";
2
3export default class CustomTab extends LightningElement {
4 @api previewData;
5}Here’s the component’s configuration file.
1<?xml version="1.0" encoding="UTF-8"?>
2<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
3 <apiVersion>63.0</apiVersion>
4 <isExposed>true</isExposed>
5 <capabilities>
6 <capability>lightning__dynamicComponent</capability>
7 </capabilities>
8</LightningComponentBundle>This example package.xml references the component’s definition.
1<?xml version="1.0" encoding="UTF-8"?>
2
3<UiPreviewMessageTabDef xmlns="http://soap.sforce.com/2006/04/metadata">
4 <isActive>true</isActive>
5 <label>TestUiPreviewMessageTab</label>
6 <lightningComponentDef>customTab</lightningComponentDef>
7 <supportedChannel>Email</supportedChannel>
8 <tabName>My Tab</tabName>
9 <isProtected>false</isProtected>
10</UiPreviewMessageTabDef>