You need to sign in to do that
Don't have an account?
Can we set Groupable property of a field in DescribeSObjectResult
I have tried to Group By a number field in SOQL query and it was giving me error of field cant be used in query call. So i checked the documentation for Group By clause and found that -
The Field object associated with DescribeSObjectResult has a groupable field that defines whether you can include the field in a GROUP BY clause.
As its a number field in that original object itself so i feel that i should be able to Group records by it. I am able to use Group by clause for text fields. When i check this groupable value for that text field - its true and for this number field its false.
So i am wondering -
1. If this problem is associated with datatype or related to that particular field?
2. how this groupable field's value is controlled and is there any way we can change its value?