You need to sign in to do that
Don't have an account?
SFDC_Learner
Reg: Who & What ID
Hi,
Can any one give a sample example to use whoid and whatid functionality for task object?
please tell me where & when we use whoId and whatId?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi,
Can any one give a sample example to use whoid and whatid functionality for task object?
please tell me where & when we use whoId and whatId?
For Example if you want to insert Task for Contact we will use following code
here Whoid is nothing but Contact id
Task objtask=new task();
objtask.whoid = 'contactid'//
insert objtask;
and Whatid is nothing but Account id or Opportunity id
Task objtask=new task();
objtask.whatid = 'Accountid' or 'Oppid'
insert objtask;
Regards,
VNath.
Worded differently, "WhoID" and "WhatID" represent the person related to the task and the subject related to the task, respectively. If you were talking to John Doe about the purchase of a generator, John Doe is the contact (WhoID), and the opportunity is the the subject (WhatID).