There is an issue that I would like to get some helps/advices. I'm creating a method in C# using Metadata API to deploy destructive changes to delete custom field as following:
Create an empty package.xml file:
32.0Create destructivechanges.xml file with following content: Lead.xxxxx__c
CustomField
Zip those files to a file name: deletefield.zip
- Using following code to deploy changes:
var zipBytes = File.ReadAllBytes(@"DeleteField.zip");
var base64zipbytes = System.Text.Encoding.UTF8.GetBytes(Convert.ToBase64String(zipBytes));
var result = _metadataService.deploy(base64zipbytes, new DeployOptions() { purgeOnDelete = true });
var deployResult = _metadataService.checkDeployStatus(result.id, true);
- I checked that the deployResult is done and it is success. However, the deployment detail is empty. Check in the UI at /changemgmt/monitorDeployment.apexp and see that it is also success but the details is empty.
What did I do wrong?
Thanks, Phuc.