I'm getting compilation errors in my trigger code when trying to use the following code to retrieve a Group Id:
Group corrections = [select Id,DeveloperName from Group where type = 'Queue' and DeveloperName = 'GroupCorrections'];
No such column 'DeveloperName' on entity 'Group'. 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.
select Id,DeveloperName from Group where type = 'Queue' and DeveloperName = 'GroupCorrections'
returns both the Id & DeveloperName in my Sandbox developer console. I'm having a bit of a hard time understanding this.
I first thought that this was an API issue, but i see my code is targeting v23.0, and I tried to change it to change it to v27.0 on my sandbox, but to no avail.