// Set up custom metadata to be created in the subscriber org. Metadata.CustomMetadata customMetadata = new Metadata.CustomMetadata(); customMetadata.fullName = 'ISVNamespace__MetadataTypeName.MetadataRecordName'; Metadata.CustomMetadataValue customField = new Metadata.CustomMetadataValue(); customField.field = 'customField__c'; customField.value = 'New value'; customMetadata.values.add(customField);
The following are properties for CustomMetadata.
public List<Metadata.CustomMetadataValue> values {get; set;}
Type: List<Metadata.CustomMetadataValue>