SOQL Aggregate Functions in Apex Programming Language | SOQL For Loop | Salesforce Development
Вставка
- Опубліковано 7 лют 2025
- SOQL Aggregate Functions in Apex Programming Language | SOQL For Loop | Salesforce Development
Learn & Get Udemy Certificate for this course "Learn Salesforce (Admin + Developer) with LWC Live Project". Check following link:
www.udemy.com/...
Watch more videos on Salesforce (Admin + Developer) in following link:
• Learn Salesforce (Admi...
Learn & Get Udemy Certificate for this course "Learn Salesforce (Admin + Developer) with LWC Live Project". Check following link:
www.udemy.com/course/learn-salesforce-admin-developer-with-lwc-live-project/?referralCode=B4FC77F9896FC0D472B4
Watch more videos on Salesforce (Admin + Developer) in following link:
ua-cam.com/play/PLhbrpS8rYbc12z8u407IVygRHIYrNdM0T.html
With regard to the video at 4:08, an aggregate function in a SOQL query *does* return an sObject, the sObject just happens to be AggregateResult. To prove my point, you could replace AggregateResult with sObject and it would work just fine: List records =[SELECT AVG(Amount) FROM Opportunity]; That said, your point is well taken -- you're not going to get Opportunity records in this case, instead you'll get an array (list) of AggregateResult (an sObject).