It seems that there are two different Location
objects:
global class Location extends SObject
global class System.Location
Because System is the default namespace, I am not sure how to refer to the SObject Location in my Apex
code.
Example (in Location trigger):
Map<Id, Location> newLocations = (Map<Id, Location>) Trigger.newMap;
Incompatible types since an instance of
Map<Id,SObject>
is never an instance ofMap<Id,System.Location>
Is there any way for me to reference the Location
SObject?
Location
SObject. If I try to add a trigger on it in my org I get:Invalid type: Schema.Location