• Varun Chaddha
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
Database.DMLOptions dm = new Database.DMLOptions();
dm.EmailHeader.triggerUserEmail = true;

Task t = new Task(Subject='Test Task', ActivityDate=date.today(), OwnerId='00590000000wND2');
database.insert(new Task[]{t}, dm);

Email Notifications are enabeld for user in My Setitngs:

Email notifications enabled for user setting

Global Settings for Allow User to control Notifications also Enabled:

User-added image


Based on these settings the Email Notification should have received by the User. And the OwnerId passed in the code is NOT the Logged In User, so the code should ahve triggerred email notifications. Please correct me if I'm wrong, but it looks like something is broken here. The code sends out Email Notifications ONLY when I've disabled "Enable User Control Over Task Assignment Notifications" globally for all users.

 
As per the Winter 15 change: http://releasenotes.docs.salesforce.com/en-us/winter15/release-notes/rn_sales_activities_notifications_task_assignment.htm

User Organization can have this new option Turned ON, which will then remove the Send Notification checkbox from Task Layouts. But a new option is added to My Settings section for Enabling/Disabling Send Notification Emails for each Task assigned to user.

Now, can I detect if this Global Option is Turned ON or OFF from inside Apex code? Which field does hti value gets saved to, does anyone know?

Also, I've noticed that I could not even send a notification using "triggerUserEmail" = True in DmlOptions while inserting new Tasks, when this global Option is Turned ON, and with all users set to "Email me when new Task is added for him" = True. I thought it should always send email if that setting is true.

 
I've been stuck at Package Not Available error for hours now, I'm able to acecss the package on other instances but on NA14, it just says:
 
Package Not Found
The requested package does not exist or has been deleted. Please contact the package publisher for assistance. If this is a recently uploaded package, please try again soon.

I've tried uploading fresh version as well. http://trust.salesforce.com/trust/status/ site does not display any performance hit or error detail and shows NA14 instance is working just fine.

What can we do more to make the package available allover the world, and where can I track which instance my package is still not available for install, does anyone know?

 
Database.DMLOptions dm = new Database.DMLOptions();
dm.EmailHeader.triggerUserEmail = true;

Task t = new Task(Subject='Test Task', ActivityDate=date.today(), OwnerId='00590000000wND2');
database.insert(new Task[]{t}, dm);

Email Notifications are enabeld for user in My Setitngs:

Email notifications enabled for user setting

Global Settings for Allow User to control Notifications also Enabled:

User-added image


Based on these settings the Email Notification should have received by the User. And the OwnerId passed in the code is NOT the Logged In User, so the code should ahve triggerred email notifications. Please correct me if I'm wrong, but it looks like something is broken here. The code sends out Email Notifications ONLY when I've disabled "Enable User Control Over Task Assignment Notifications" globally for all users.

 
Database.DMLOptions dm = new Database.DMLOptions();
dm.EmailHeader.triggerUserEmail = true;

Task t = new Task(Subject='Test Task', ActivityDate=date.today(), OwnerId='00590000000wND2');
database.insert(new Task[]{t}, dm);

Email Notifications are enabeld for user in My Setitngs:

Email notifications enabled for user setting

Global Settings for Allow User to control Notifications also Enabled:

User-added image


Based on these settings the Email Notification should have received by the User. And the OwnerId passed in the code is NOT the Logged In User, so the code should ahve triggerred email notifications. Please correct me if I'm wrong, but it looks like something is broken here. The code sends out Email Notifications ONLY when I've disabled "Enable User Control Over Task Assignment Notifications" globally for all users.

 
As per the Winter 15 change: http://releasenotes.docs.salesforce.com/en-us/winter15/release-notes/rn_sales_activities_notifications_task_assignment.htm

User Organization can have this new option Turned ON, which will then remove the Send Notification checkbox from Task Layouts. But a new option is added to My Settings section for Enabling/Disabling Send Notification Emails for each Task assigned to user.

Now, can I detect if this Global Option is Turned ON or OFF from inside Apex code? Which field does hti value gets saved to, does anyone know?

Also, I've noticed that I could not even send a notification using "triggerUserEmail" = True in DmlOptions while inserting new Tasks, when this global Option is Turned ON, and with all users set to "Email me when new Task is added for him" = True. I thought it should always send email if that setting is true.

 
I've been stuck at Package Not Available error for hours now, I'm able to acecss the package on other instances but on NA14, it just says:
 
Package Not Found
The requested package does not exist or has been deleted. Please contact the package publisher for assistance. If this is a recently uploaded package, please try again soon.

I've tried uploading fresh version as well. http://trust.salesforce.com/trust/status/ site does not display any performance hit or error detail and shows NA14 instance is working just fine.

What can we do more to make the package available allover the world, and where can I track which instance my package is still not available for install, does anyone know?