1

What is the SOQL to query all participants on a Task? Where is this information stored? WhoId will only give me one of the participants.

Or more specifically how can I query all Tasks for which there is a participant from a specific Account. I'm resigned to the fact that this is quite possibly two queries, and I'm okay with that.

1 Answer 1

1

On the Event object I use the EvenRelation to obtain those Leads, Contacts, or Users that are part of the Event.

Something like this:

List<EventRelation> whoRelations = new List<EventRelation>([SELECT Id, Relation.Name, Status
                                                        FROM EventRelation... etc 

There is also a TaskRelation, just chek the documentation. or click here :)

Check the TaskWhoRelation as well. here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .