How to Query ActivityHistory for a record in Salesforce? January 26, 2022June 9, 2022InfallibleTechie Admin Sample SOQL: SELECT Id, Name, ( SELECT Id, Subject, Status FROM ActivityHistories ) FROM Account WHERE Id = ‘0018c000026ZmPmAAK’ Output: