You need to sign in to do that
Don't have an account?
Ninie
Task Object Email Notification
Hi..
Need some help here...Im using API to insert Task. But every time I create task using API the email notification will not be send to the Owner of the TASK. Even I set send email notification as default in UI, when I try to load using API its still not work...
Appreciate if anyone can give me an advise or guideline regarding this issue.
Thank you in advance!
Task t = new Task(Subject='Follow-up');
Database.DMLOptions dmlo = new Database.DMLOptions();
dmlo.EmailHeader.triggerUserEmail = true;
database.insert(t, dmlo);
All Answers
I believe there is a field in Tack object "Send Notification" or something like that. This field has to be set to TRUE when you insert a task from API..
Hope this helps..
No, there is no such "Send Notification" field @ Task. Also there is no such property @ Task, which can be set as true when inserting a task using API.
Following is screenshot of all properties supported by Task .. Is there any other option to send notification on task creation using API or Apex ?
Task t = new Task(Subject='Follow-up');
Database.DMLOptions dmlo = new Database.DMLOptions();
dmlo.EmailHeader.triggerUserEmail = true;
database.insert(t, dmlo);
Meyerd, you are the absolute greatest! I've sifted through hundreds of triggers just to get apex triggers with task notifications working and yours by far is the only one that got mine to fire. Kudos to you!
How to do this with REST API?