function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Dataloader Activity history issue


i want to insert openactivities and Activity history on Account object .i try to insert but it is not inserted.Can you please help me with the steps how to insert ?

Hi Isha,

To import activity records (Tasks and Events) into Activity History, you need to import Tasks with a "Completed" status or events that have occurred in the past since this is what determines whether an activity falls under Open Activities or Activity History. 

When importing activities into Salesforce there are associations that need to be made to relate the activity to other object's records and user records.

Preparing the .CSV file:
Your CSV file should contain the following columns to properly relate the activities to existing records in Salesforce:
- WHOID: Sets whether the task will be associated to a Contact or a Lead

-  WHATID: Associates the task with an Opportunity or an Account
Note: If you are setting a lead record as the WHOID, it is not possible to set a value for the WHATID field
- OWNERID: Maps to the "Assigned To" field

- Status: Only include this column when inserting Tasks and set it to Completed for the record to appear under Activity History

- StartDateTime and EndDateTime: Only include these columns when inserting Events. Events that have a Start and End date/time in the past will automatically be placed into the Activity History related list. Review the field description for each of these in the Event object's documentation for special considerations and What is the format for Date and Date/Time values through the API or Data Loader? for their format.

- Subject and optionally the Description field. For a full list of available fields refer to the SOAP API Developer Guide'sEvent and Task object documentation.
For all of the previous relationships you must use the unique record Id to make a successful association. Because a lookup relationship is being created, simply inputting the record name will not work. You can get the Ids of the associated records by running and then exporting a report that included the Record Id column.
Inserting the records:
1. Log in to the Data Loader

2. Choose Insert

3. Select Tasks or Events accordingly.

4. Locate the csv. file created on the first step

5. Click "Create or Edit a map" and map the Salesforce fields to the columns in your file

6. Next

7. Finish

i want to import only Account related ones.Is it manadatory to assign WHO ID and WHAT ID?
i follow the same way but i could not do it.can you please assist with me on this?