I am getting the error
No such column 'DeveloperName' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source
when saving a Lightning component on my sandbox after Summer '19 release.
The Lightning component is using an Apex class where the below code is causing the error :
Set<String> objAPINames = new Set<String>{'Account', 'Opportunity'};
Map<String,Id> mapValues = new Map<String,Id>();
for(RecordType rt : [select SobjectType, DeveloperName, Id
from RecordType
where SobjectType IN :objAPINames
order by SobjectType ASC ]){
mapValues.put(rt.DeveloperName, rt.Id);
}
This code works fine in Developer Console, Apex Classes, Triggers. It is only causing error when I am saving Lightning Component calling the class.
Anyone got this issue after the new release?