function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how to get the Open Activity and Activity History in Account using Single SOQL




I want to merge the Open Activity and Activity History into a single query.


Please Help Me.




You can try below SOQL query


Select a.Id, (Select Id From Tasks), (Select Id, Subject From Events) From Account a


Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.