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
Anil DuttAnil Dutt 

Log Activity on custom button in salesforce

Hi,

 

Is there any way we can log Activities from some custom button which send email?

 

Log an Activity when an email is sent from a custom button

My custom button not only send email but do few more things, i called a apex class from custom button to do all the stuff, now want to log activity from same apex class

 

 

thanks

sfdcfoxsfdcfox

You could just create a Task, assign the related contact's Id to the task's WhoId, and so on.

Asha NamboodiriAsha Namboodiri

Hi Anil,

 

I am facing a similar issue. Where you able to find a solution to this query?

Anil DuttAnil Dutt