Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 12831
1 vote

Can I manipulate the List of AggregateResult returned in a SOQL Query?

You may be able to create a holding object to pass to the library that has the information you want: public class Data { public integer C1; public integer C2; } List<AggregateResult> R1=[SELECT … Count(name) C1 from Sobject1__c]; List<AggregateResult> R2=[SELECT Count(name) C2 from Sobject2__c]; Data datum = new Data(); datum.C1 = integer.valueOf(R1[0].get('C1')); datum.C2 = integer.valueOf(R2 …
IllusiveBrian's user avatar
4 votes

How to Deserialize AggregateResults?

I don't think serialization on AggregateResult works because AggregateResult is not a "real" sObject, so it doesn't have any of its own fields. … into a list of AggregateResult objects with the "ID" field populated. …
IllusiveBrian's user avatar