You need to sign in to do that
Don't have an account?
jeremyy
Fields of type Geolocation break dynamic Apex
Given a field name 'Geolocation__c' of type Geolocation, the following code produces 'System.TypeException: Data type not supported':
SObject contactSob = new Contact(); System.debug(contactSob.get('Geolocation__c'));This seems to have broken a lot of our code. Any ideas what's causing this, or a workaround?
Geolocation type field cannot be directly used.
we have to use these field like :
SObject contactSob = new Contact();
System.debug(contactSob.get('Geolocation__latitude__s'));
We need to divide the field with latitude and longitude.
if you want langitude then use like:
System.debug(contactSob.get('Geolocation__longitude__s'));
I think it will help you. please try this.
Thanks
What I'd like to know is if salesforce is planning on addressing this, or is there a reasonable workaround?