You need to sign in to do that
Don't have an account?
Ashritha S
Couldnt read Geolocation custom field using metadata API
I got a exception ' System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element displayLocationInDecimal ' while reading a geolocation custom field using metadata api.
If my answer helps resolve your query, please mark it as the 'Best Answer' to benefit others and improve the overall quality of Discussion Forums.
here is the code ,
MetadataService.CustomField customFieldExisting = (MetadataService.CustomField) service.readMetadata('CustomField', new String[] { 'FieldCreationTest__c.Test_Geolocation__c' }).getRecords()[0];
System.debug(customFieldExisting.label);
'FieldCreationTest__c.Test_Geolocation__c'
try
'FieldCreationTest__c.Test_Geolocation__s'