Question: what is the difference between whatid and whoid where you use them?
Answer: WhoID in Salesforce refers to people things. So that would be typically a Lead ID or a Contact ID. ... WhatID in Salesforce refers to object type things. That would typically be an Account ID or an Opportunity ID.