Activity › Forums › Salesforce® Discussions › What is the difference between WhoId and WhatId on Task?
Tagged: Difference, Tasks in Salesforce, WhatId, WhoID
-
What is the difference between WhoId and WhatId on Task?
Posted by shradha jain on August 6, 2018 at 11:09 AMWhat is the difference between WhoId and WhatId on Task?
shariq replied 7 years, 8 months ago 5 Members · 4 Replies -
4 Replies
-
Hi Shradha
WhoID refers to people things.So that would be typically a Lead ID or a Contact ID
WhatID refers to object type things.That would typically be an Account ID or an Opportunity ID
- [adinserter block='9']
-
Hi,
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.
-
Hello Shradha.
These are related objects IDs on the task record.
WhatId could be used to link that activity with Account, Oppty, Custom object etcWhoId can be used to link the activity with Contact, Lead etc.
Thanks.
-
This reply was modified 7 years, 8 months ago by
Parul.
-
This reply was modified 7 years, 8 months ago by
-
Hi,
To make it more simple to understand –
WhatID – Refers to object.
Example: Account Id, Opportunity Id.
WhoId – Refers to people.
Example: Lead Id, Contact Id.
Log In to reply.