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
Josh GallagherJosh Gallagher 

Create a button that completes a task and sends email notification

Im not sure if this can be done, but I am trying to create a custom button that would complete and task and then send a email notification out to the task creator that it has been completed. 
chip5chip5
yes, you could do that with apex code and VF or lightning. do you want the creator to be notified whenever a task is closed? in that case you should have the email be sent by an apex trigger, workflow, or process builder that will fire whenever a task is completed, even if it was done on the backend.
Josh GallagherJosh Gallagher
Yes the way we have it setup now is thru process builder and the creator gets notified when a task is completed, but an email notification gets sent when you complete any task like logging a phone call, etc. Thats why I would want it to only trigger when the button is clicked.