I would like to get in one query all notes, attachements, Activity histories, tasks events of one Lead. (I'm limited in terms of API calls)
I tried to concatenated queries in this query (Sorry I just started in Salesforce):
SELECT Id, Name,
(SELECT Subject, Description FROM Event),
(SELECT Title, Body FROM Note),
(SELECT Name, Description FROM Attachment),
(SELECT Subject, Description FROM Task)
(SELECT LastModifiedDate, Subject, Description from ActivityHistories)
FROM Contact WHERE Id = 'XXX'
Any hint will be very helpful !
Thanks !