What is WhoID and WhatID in task?

What is WhoID and WhatID in task?

WhoId is the term used in Salesforce for pointing out the things of people. so basically it would be a contact id or leading id. WhatId is the term used in Salesforce for pointing out the type of things or objects. So, basically, it can be the Id of account and opportunity.

What is the difference between WhoID and WhatID in the data model of task?

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.

How do I query task objects in Salesforce?

You can use queryAll() to query on all TASK and EVENT records, archived or not. You can also filter on the isArchived field to find only the archived objects. You cannot use Query() as it automatically filters out all records where isArchived is set to true.

How do I create a custom field in task object in Salesforce?

When you navigate to Task or Event fields in Setup, you may notice that there is not a New button to create new fields for that object….Create custom fields for Tasks or Events

  1. Go to Setup.
  2. Enter Activities in the Quick Find box.
  3. Click on Activity Custom Fields.
  4. Click on New.

What is the difference between WhatID and WhoID?

WhoId in Salesforce: It refers to people such as Lead or Contact. WhatId in Salesforce: It refers to object type such as Account, Opportunity, Campaign, Case or Custom objects.

What is difference between WhoID and WhatID in Salesforce?

What is task object in Salesforce?

Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are collectively referred to as activities. Note. Task fields related to calls are exclusive to Salesforce CRM Call Center.