function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hiral Patel 25Hiral Patel 25 

3. What are some limitations when working with WhoId and WhatId in Salesforce? How can you work around those?

  1. What are some limitations when working with WhoId and WhatId in Salesforce? How can you work around those?
PriyaPriya (Salesforce Developers) 

Hi Hiral,

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

Kindly mark it as best answer if it helps you.

Regards,

Priya Ranjan

Shivam Kumar 153Shivam Kumar 153
Best SIte To Visit On https://www.gyanshout.com/
Koom stark100Koom stark100
The site mycenturahealth login is a medical services online entryway that deals with your wellbeing-related data. You can do something other than significantly get the insights regarding your clinical reports. You can look at different subtleties like downloading your messages and auditing every one of the insights concerning the outcomes and ailments. More advantages of the Centura wellbeing entryway gives.

visit here:https://topsurvey.onl/mycenturahealth/
homin daxenhomin daxen
Many thanks for your kind stuff could you please take a look on my site (https://www.lithiumbatterychina.com/) and let me know how can i improve my site to get more jobs to be posted. 
Shuvam PatraShuvam Patra

WhoId and WhatId in Salesforce? Sure, they've got limitations. WhoId links to a Contact or Lead only, and WhatId to most objects, but not all (sorry, User and Lead). You're also limited to one WhoId and one WhatId per activity. And yes, they can be tricky in SOQL queries.

 

But you know what? There are workarounds. Need to link an activity with more than one contact or object? Try a junction object. Need more flexibility than WhoId and WhatId offer? Custom lookup fields could be your friend. And for those pesky polymorphic fields in SOQL, use the "TYPEOF" keyword if you can, or separate your queries.

 

Bottom line: Salesforce might have limitations, but it also gives you tools to work around them.
Kindly mark it as best answer if this helps you out.