I am trying to deploy a field on a custom metadata type using Ant.
Here's my package.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>CustomMetadata</name>
</types>
<version>43.0</version>
</Package>
Then inside a customMetadata
folder I have a file called nameOfMtdType.NameOfField.md
. That file's content looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<values>
<fullName>Number_Of_Balls__c</fullName>
<description>The maximum number of balls that are allowed.</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText>The maximum number of balls that are allowed.</inlineHelpText>
<label>Number Of Balls</label>
<precision>4</precision>
<required>false</required>
<scale>0</scale>
<type>Number</type>
<unique>false</unique>
</values>
</CustomMetadata>
I am getting this error: Error parsing file: Element {http://soap.sforce.com/2006/04/metadata}fullName invalid at this location in type CustomMetadataValue
What am I doing wrong? The content inside the <values></values>
is what I pulled from my scratch org using sfdx.
Also, I was trying to follow the documentation from this link: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_custommetadata.htm
Is there a better resource?