get value in for loop in field can not be grouped in a query call code example
Example: [object Object]: BY KimbleOne__DeliveryGroup__c, CreatedDate ^ ERROR at Row:1:Column:142 field 'CreatedDate' can not be grouped in a query call
SELECT Name, Max(CreatedDate)
FROM Account
GROUP BY Name
LIMIT 5