0

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.

2

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

  • 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 '17 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.