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
usmanusman 

Task Email Notification - API 5.0/.NET

It is possible to send email notification vai API for a newly created task.

M. Uppal

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
Yes, its possible, has been for a while, see the EmailHeader SOAP header.
http://www.salesforce.com/us/developer/docs/api/index_CSH.htm#sforce_api_header_emailheader.htm

All Answers

HaroldHHaroldH
It seems that the answer is "No," but I would love to be proven wrong here.
SuperfellSuperfell
The answer is currently no. There are plans afoot to add a soap header that controls if emails that are normally triggered by the app, also get triggered by the API.
HaroldHHaroldH

Thanks for the update (and quick response!) -- This will be a welcome addition. 

In the interim, we'll probably just fire off an email message in our sforce-connected application itself, rather than use Salesforce.com's email functionality. 

GoForceGoGoForceGo
Is this still not possible - 2+ years later?

I don't see this field in Task API.


SuperfellSuperfell
Yes, its possible, has been for a while, see the EmailHeader SOAP header.
http://www.salesforce.com/us/developer/docs/api/index_CSH.htm#sforce_api_header_emailheader.htm
This was selected as the best answer
GoForceGoGoForceGo
Thanks.

I am not using "API" - I am using Apex Code to build the app.

I am just creating a new Task object in Apex and was hoping there would be field to specify whether notification e-mail will be sent.

I don't see such as field in the Task object.

http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=sforce_api_header_emailheader.htm|SkinName=webhelp

Is there equivalent of SOAP header for Apex Code?