Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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, 2 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.

    • 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

    application solution

    Popular Salesforce Blogs

    Shield Platform Encryption

    Salesforce Shield Platform Encryption Guide

    Blog in Data, Salesforce Security

    Shield Platform Encryption As organizations store more sensitive data, like actually recognizable data (PII), in the cloud, they need to guarantee the protection and classification…

    Application Server, Attachment, Classic Encryption, Clients, Cloud Administration
    Shweta Choudhary Jul 2, 2021
    4,301  Views

    Salesforce Winter '22 Release Highlights

    Blog in Salesforce Releases

    With fall now upon us, the weather is cooling, the leaves are changing, and the Salesforce Winter '22 Release is here! Chock-full of impressive new…

    Audience Segmentation, Automated Email Campaigns, Business, CMS Integration, Create Dashboards
    DB Oct 5, 2021
    3,418  Views
    The Benefits of Salesforce Sales Cloud for your Business The Ultimate Guide

    The Benefits of Salesforce Sales Cloud for your Business | The Ultimate Guide

    Blog in Salesforce Consultant

    In today’s competitive business environment, customer satisfaction and retention are key factors in achieving success. This is where Salesforce Sales Cloud comes into play. It is a…

    Customer Experience, Customer Experiences, Customer Journeys, Customer Loyalty, marketing cloud and sales cloud integration
    Innovadel Mar 27, 2023
    1,260  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

    © 2025 - 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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.