You need to sign in to do that
Don't have an account?
Mateo Alcauter
field cannot be grouped in a query call
How can i get the users photo in this SOQL query
List<AggregateResult> badges= [SELECT Recipient.Name rec, count(id) cnt, Recipient.FullPhotoUrl From WorkBadge GROUP BY Recipient.Name, Recipient.FullPhotoUrl HAVING count(id) > 0 ORDER BY count(id) DESC];
I'm getting the error message: field 'FullPhotoUrl' can not be grouped in a query call
List<AggregateResult> badges= [SELECT Recipient.Name rec, count(id) cnt, Recipient.FullPhotoUrl From WorkBadge GROUP BY Recipient.Name, Recipient.FullPhotoUrl HAVING count(id) > 0 ORDER BY count(id) DESC];
I'm getting the error message: field 'FullPhotoUrl' can not be grouped in a query call
All Answers
Looks like FullPhotoURL is not groupable as per the document. Please refer this link
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_user.htm?search_text=Group