I have enabled "Allow Users to Relate Multiple Contacts to Tasks and Events" Activity setting and I am able to add multiple contacts to name field from task layout. But when I am querying from developer console the result is returning only the primary contact not. Even in Account layout under open Activities I can see the primary contact.

What else setting I need to enable to view and fetch all the contacts assigned in name field.

1 Answer 1


You need to use the EventRelation and TaskRelation objects to locate additional contacts related to tasks and events.

  • 1
    When I am trying to insert Task object from Apex it is taking only one contact and so creating only one TaskRelation entry. How to assign multiple contacts which internally should create those many TaskRelation entries?
    – San
    Jul 2, 2017 at 17:26

You must log in to answer this question.

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