+ Start a Discussion

Error while adding an event

I get the following error while adding an event.

Who: id value of incorrect type: ...

The id value that I have supplied to the who field is the ID of the user in the User Table. Could somebody help me on this.




I've found this confusing as well. The Who ID should be either a Contact or Lead ID.

The labels for the event fields are a little clearer than the names of the fields ...
     WhoId -> Contact/Lead ID
     WhatId -> Opportunity/Account
     OwnerID -> Assigned To ID
and then, more clearly,
     AccountId -> Account ID
     CreatedById -> Created By ID
     LastModifiedById -> Last Modified By ID
     Id -> Activity ID

To determine definitively what is a valid id in the whoid and whatid fields, you should run a describe call on the object in question and carefully examine the reference values of the whoid and whatid field definitions.