You need to sign in to do that
Don't have an account?
Justin Julicher
Getting error on compile - Variable does not exist: DeveloperName
I'm currently getting this error when trying to compile the following piece of code.
I'm using version 30 of the API and it was compiling just a few days ago... I'm unsure what has changed as I haven't really changed much apart from trying out mavensMate.
any ideas anyone?
thanks.
if (objectRecordTypeMap.get(objectName) == null){ for (RecordType r : [select DeveloperName, Id from RecordType where sObjectType =: objectName]){ recordTypeMap.put(r.DeveloperName, r.Id); } objectRecordTypeMap.put(objectName, recordTypeMap); } else { recordTypeMap = objectRecordTypeMap.get(objectName); }
I'm using version 30 of the API and it was compiling just a few days ago... I'm unsure what has changed as I haven't really changed much apart from trying out mavensMate.
any ideas anyone?
thanks.
If this helps,please mark it as best answer to help others :)
All Answers
"Compile error at line 1 column 18 Loop variable must be an SObject or list of RecordType"
Except if I run the same SOQL in Force.com Explorer (Beta) I get all the record types for 'Case' - what is going on ?
I get:
Compile error at line 1 column 1
Illegal assignment from LIST<RecordType> to LIST<RecordType>
???
If this helps,please mark it as best answer to help others :)