In Salesforce, the "Allow users to relate multiple contacts to events and tasks" setting (also known as Shared Activities) lets you link a single task to up to 50 contacts. To associate multiple contacts with many task records in bulk, use Salesforce Data Loader to insert records into the TaskRelation object, not the Task object itself.
This article answers the question: how do you add multiple contacts to existing Salesforce tasks in bulk using Data Loader? Insert one TaskRelation record for each task and contact combination.
Warning: Always back up your data before performing any data operation. See Export Backup Data from Salesforce for more details. Run a test with a small subset of records first, then open the records in Salesforce to verify the results are correct.
Note: The task records must already exist in the org to follow this process. If the task records do not exist yet, refer to Import Tasks or Events (Activity History) into existing records and create the tasks with Data Loader. Leave the WhoID (Name) field blank during the initial task creation.
Create a separate CSV file with the columns TaskID, IsWhat, and RelationID.
Populate one row for each task and contact combination. For example, if a task is associated with 2 contacts, that task appears in 2 rows.
| TASKID | ISWHAT | RELATIONID |
| 00Txxxxxxxxx2Ef | FALSE | 003Axxxxxxxxx0Ab |
| 00Txxxxxxxxx2Ef | FALSE | 003Axxxxxxxxx1cD |
After you save the CSV file, use Data Loader to upload it to the TaskRelation object.
000382432

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.