Activity › Forums › Salesforce® Discussions › What is the difference between WhoId and WhatId in the Data Model of Task?
Tagged: Account ID, Contact ID, Data Model, Difference, Lead ID, Opportunity ID, WhatId, WhoID
-
What is the difference between WhoId and WhatId in the Data Model of Task?
Posted by Avnish Yadav on August 9, 2018 at 7:59 AMWhat is the difference between WhoId and WhatId in the Data Model of Task?
Parul replied 7 years, 8 months ago 4 Members · 4 Replies -
4 Replies
-
Hello Avnish,
WhoID in Salesforce refers to people things. So that would be typically a Lead ID or a Contact ID. The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name ID.
WhatID in Salesforce refers to object type things. That would typically be an Account ID or an Opportunity ID. The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID.
Thanks.
- [adinserter block='9']
-
Hi,
WhatId: ID of a related Account, Opportunity, Campaign, Case, or custom object. Labelis Opportunity/Account ID.
WhoId: ID of a related Contact or Lead. If the WhoId refers to a lead, then the WhatId field must be empty. Label is Contact/Lead ID. If Shared Activities is enabled, this is the ID of a related Lead or primary Contact.
Hope this helps.
-
WhatId: ID of a related Account, Opportunity, Campaign, Case, or custom object. Labelis Opportunity/Account ID.
WhoId: ID of a related Contact or Lead. If the WhoId refers to a lead, then the WhatId field must be empty. Label is Contact/Lead ID. If Shared Activities is enabled, this is the ID of a related Lead or primary Contact.Thanks
Log In to reply.
