Newer Version Available
CustomFieldDisplay
Represents the view type assigned to product attribute
custom fields. This type extends the Metadata metadata type and inherits its
fullName field.
File Suffix and Directory Location
CustomFieldDisplay components have the suffix .customFieldDisplay.
Version
CustomFieldDisplay components are available in API version 63.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| displayType | CustomFieldDisplayType (enumeration of type string) |
Required. The view type of the product attribute custom fields. Values are:
|
| fieldApiName | string | Required. The unique name of the product attribute, for example, color_c. |
| isProtected | boolean | Optional. An auto-generated value that doesn’t impact the behavior of the metadata type. The default value is false. |
| masterLabel | string | Required. The primary label for this object. |
Declarative Metadata Sample Definition
The following is an example of a CustomFieldDisplay component.
1<?xml version="1.0" encoding="UTF-8"?>
2<CustomFieldDisplay xmlns="http://soap.sforce.com/2006/04/metadata">
3 <masterLabel>cfd1</masterLabel>
4 <fieldApiName>Color__c</fieldApiName>
5 <displayType>Pill</displayType>
6 <isProtected>false</isProtected>
7</CustomFieldDisplay>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>CustomFieldDisplay</name>
6 </types>
7 <version>63.0</version>
8</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.