Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    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

    • Salesforce® Discussions

      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 AM

      What is the difference between WhoId and WhatId in the Data Model of Task?

      Parul replied 7 years, 11 months ago 4 Members · 4 Replies
      • Account ID
      • Contact ID
      • Data Model
      • Difference
      • Lead ID
      • Opportunity ID
      • WhatId
      • WhoID
    • 4 Replies
    • Prachi

      Member
      August 9, 2018 at 9:05 AM

      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']
    • Avnish Yadav

      Member
      August 14, 2018 at 10:31 AM

      Thanks Prachi!

    • shariq

      Member
      September 16, 2018 at 6:03 PM

      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.

    • Parul

      Member
      September 17, 2018 at 3:43 AM

      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.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    New Summer '22 Salesforce Flow Updates

    Blog in Salesforce Releases

    Numerous areas of Salesforce that formerly needed specialized programmers no longer necessitate the hiring of developers. Salesforce Flow Builder is now the key tool for…

    Apex-Defined Invocable Actions, Applications, Automation, Create Screen Flows, Custom Component
    Apphienz Jun 13, 2022
    2,389  Views
    Email Relay in Salesforce

    How to Setup Email Relay in Salesforce - Learn Here

    Blog in Salesforce Admin

    In this blog, we got to know How to setup Email Relay in Salesforce. Reviewing the Current Setup of our Salesforce ORG Login in your…

    Configure Button, Email, Email Domain Filter, Email Relay, Email Relay Connection
    shreya yadav Jul 13, 2022
    10,281  Views
    A Guide for Salesforce Certification

    A Guide for Salesforce Certification

    Blog in Others, Salesforce Certifications, Salesforce Trailhead

    In today's world,  Salesforce is a huge platform for all the developers, admins and consultants as well as for customers also. So Salesforce provides their different…

    Certification Trailblazer, Community Cloud Consultant, Data Architecture And Management Designer, Development Lifecycle And Deployment Designer, Identity And Access Management Designer
    PRANAV Feb 26, 2018
    9,233  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.