Events are the meeting history clients care about most, and Salesforce is picky about them: one of three date patterns, an owner that isn’t a queue, one What, and every extra attendee in a second load. Here is the whole job, both loads.
On this page
- The problem
- Rule 1 · Dates
- Rule 2 · Fields
- Rule 3 · EventRelation
- The two loads
- Common errors
- Gotchas and FAQ
Events are history with strings attached.
An Event needs valid dates, an owner that isn’t a queue, and the right Who and What. Attendees beyond the first go in a second load, on EventRelation.
Meetings and appointments are the activity history clients care about most. Tasks are to-dos with a Status. Events are things on a calendar, so Salesforce is fussy about their dates. With Shared Activities on, one Event can relate to up to 50 Contacts or one Lead, plus one What record (an Account, Opportunity and so on).

Prefer to read? Everything in the video is written out below.
Pick one date pattern per row.
Every Event row needs exactly one of these three.
| Pattern | You provide | Salesforce works out |
|---|---|---|
| Start + End | StartDateTime, EndDateTime | Duration |
| Start + Duration | StartDateTime, DurationInMinutes | End |
| All day | IsAllDayEvent = TRUE, ActivityDate | Leave Start, End and Duration blank |

Fill the fields that matter.
Subject, owner, and the two polymorphic lookups.
| Field | What goes in it |
|---|---|
Subject | The title, 255 characters max. Trim the old description if there’s no subject |
OwnerId | A User ID or a public calendar ID. Events can’t be owned by queues |
WhoId | The new org’s Contact or Lead ID |
WhatId | The new org’s Account, Opportunity or other record ID. Blank when WhoId is a Lead |
To get the new IDs, VLOOKUP the legacy IDs against your success files, or load the legacy IDs into External ID fields and match on those.
Extra attendees go on EventRelation.
The Event load carries one Who. Everyone else is a second insert on EventRelation, once you have the new Event IDs.
| Column | Value |
|---|---|
EventId | The new Event ID from the success file |
RelationId | The Contact, Lead or What record |
IsParent | TRUE for related records (they show on Name and Related To) |
IsWhat | TRUE when RelationId is the Account, Opportunity etc. |
One What per Event. If the file has two What relations for the same Event, the first sets WhatId and the rest fail. Pick one. Invitees are different: they’re meeting participants and don’t touch Who or What.
Insert Events, then EventRelations.
Two inserts, a success file in between.
- Prep in Excel: format the date/time columns, filter
IsAllDayEvent = TRUEand check those rows have an ActivityDate and nothing else, sort by WhoId and blank WhatId on Lead rows. - Save as CSV. Data Loader → Insert → Event, check the mapping (API-name headers help) and run it.
- Paste the success file into an “Event Successes” tab. Open an Event by ID and check name, Related To and the dates.
- Build the EventRelation file from those new Event IDs. Data Loader → Insert → Event Relation, map and run.
- Open the Event again: Related To is filled, the contacts show as attendees, and the meeting digest counts them, organizer included.
The three you’ll probably hit.
| Error | Fix |
|---|---|
FIELD_INTEGRITY_EXCEPTION | The row has a Lead in WhoId and something in WhatId. Blank the WhatId |
| Bad value for restricted picklist field | Add the missing values to the picklist (Type, Show As…) or map them to existing ones |
| Activity date and start date/time must match | Almost always an all-day Event. Blank Start, End and Duration, keep ActivityDate |
More in the Data Loader error codes post.
The questions people ask.
Can a queue own an Event?
How many people can be on one Event?
Why load EventRelation separately?
Can I set Created Date to the original date?
What should load first?
Activities come last for a reason.
The Masterclass walks through the full migration in load order, so by the time you reach Events and Tasks every Who, What and Owner they point at already exists.
Know someone migrating years of meeting history?
Share on LinkedInOne CSV is a tutorial. Forty objects, 15 years of history and a go-live date is a project. That’s the part I do for a living.
See how I run migrations →