DataSourceField
Parent Type
File Suffix and Directory Location
DataSourceField components have the suffix .dataSourceField and are stored in the dataSourceFields folder.
Version
DataSourceField components are available in API version 52.0 and later.
Special Access Rules
You need the Salesforce Customize Application permission to access this metadata type.
Fields
Declarative Metadata Sample Definition
This is an example of a DataSourceObject component and its fields. You can retrieve the DataSourceField component only through its parent object, DataSourceObject.
1<DataSourceObject xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2 <dataSource>test1108</dataSource>
3 <dataSourceFields>
4 <fullName>DOB</fullName>
5 <datatype>D</datatype>
6 <externalName>DOB</externalName>
7 <isDataRequired>false</isDataRequired>
8 <masterLabel>DOB</masterLabel>
9 <sequence xsi:nil="true"/>
10 <versionNumber xsi:nil="true"/>
11 </dataSourceFields>
12 <externalRecordIdentifier>individuals_20200125_000000_csv</externalRecordIdentifier>
13 <masterLabel>test1108</masterLabel>
14 <objectType>Object</objectType>
15</DataSourceObject>The following is an example package.xml that references the previous definition.
1<types>
2 <members>test1108</members>
3 <name>DataSource</name>
4 </types>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.