+ Start a Discussion
kgrasukgrasu 

How can I add the "Send Notification Email" checkbox to my task visualforce page?

Hi,
 
I am overriding the "Log a Call " new page in visualforce.
 
How can I add the "Send Notification Email" checkbox that in the standard new page for "Log A Call"  to my custom visualforce edit page for "Log A Call"? I dont see the API name for this field anywhere in the Task object definition.
 
Appreciate if soemone can comment on this issue.
 
Thanks
VarunCVarunC
yes .. me tooo ... has anyone got any info on this ?
Bhawani SharmaBhawani Sharma
As this is your custom page, you can use a boolean property on page. In your controller class's method, check if flag is checked, Use DMLOption class:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_database_dmloptions.htm

You will have to use triggerUserEmail property and then,
database.inser(taskRecord, dmo);