You need to sign in to do that
Don't have an account?
ErrorProne
Aggravating AggregateResult
PHP API Call,
I have a sum(Amout) in my Query which reutrns an "AggregateResult"
how do I echo the AggregatedResult
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
PHP API Call,
I have a sum(Amout) in my Query which reutrns an "AggregateResult"
how do I echo the AggregatedResult
AggregateResult[] listData = [SELECT OwnerId, sum(Amount__c) amnt From AmountData__c GROUP BY OwnerId];
for (Sobject so : listData) {
AggregateResult ar = (AggregateResult) so;
Id OwnerId = (Id) ar.get('OwnerId');
Decimal tempAmount = (Decimal) ar.get('amnt');
}
Let me know if this resolves your issue