+ Start a Discussion
Adarsh NandanAdarsh Nandan 

Related To Activity History ?

Hii , Just I Want  to make a ActivityHistory on What Id Object not on Target Object Id on Sending an Email From Apex . Then What Can I do ?
Its Urgent. Actually my Email Is Go From  Cutom Object Email Field  and also Using Email template ?

Harshala P ShewaleHarshala P Shewale
Could you eloborate on what is your What ID and what Target Id you set during Send Email from Apex Code ?

The Activity is only created if the recipient list is based on targetObjectId, so you can not avoid setting WhoId. So the wrok around is to insert Activity record explicity in Apex where you can only set WhatId and not WhoId.

Hope this helps you !