You need to sign in to do that
Don't have an account?
Sylvain@RibbonFish
AggregateResult and SObject
Hi,
I would like to extract the SObject (not the properties by using ar.get(x)) from an aggregateResult object.
There is no way to do that ?
Like:
AggregateResult ar;
Product2 p = ar;
(give me this error: Invalid conversion from runtime type SOBJECT:AggregateResult to SOBJECT:Product2)
Thanks
No, I'm afraid you cannot make that conversion from Aggregate result to SObject.
If the post helps you, throw KUDOS.
Thanks