I have created a GlobalValueSet using salesforce metadata api. Now I am creating a new field on a existing object using SF metadata api which is going to use this GlobalValueSet, but somehow its failing to deploy giving me following error : Error: You must specify either picklist, globalPicklist, or valueSet.
Following is object field metadata and I tried using all the types ex: valueSet, globalPicklist, globalValueSet possible to get through this, but none works. Anyone has a idea how do we reference GlobalValueSets when creating a new picklist field ?
<fields>
<fullName>global_time__c</fullName>
<externalId>false</externalId>
<label>global time</label>
<required>false</required>
<trackTrending>false</trackTrending>
<valueSet>Start_End_Time__c</valueSet>
<type>Picklist</type>
</fields>
Best Answer
<valueSet>
isn't just a value. It requires more. It should be: