• isdev
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello,

I have a trigger that is changing the owner (After update, After insert)  and each time the owner is change a  notification email is sent to the new owner.

It seems it cannot be disable even with the DML option :

Database.DMLOptions dlo = new Database.DMLOptions();
dlo.EmailHeader.triggerAutoResponseEmail = false;
dlo.EmailHeader.triggerOtherEmail = false;
dlo.EmailHeader.triggerUserEmail = false;
dlo.assignmentRuleHeader.useDefaultRule= false;
database.update(LeadstoUpdate,dlo);

Is there another way to disable this email  ? I found a lot of post asking that but no real solution.

Thanks for your help
  • June 13, 2014
  • Like
  • 2
Hello,

I have a trigger that is changing the owner (After update, After insert)  and each time the owner is change a  notification email is sent to the new owner.

It seems it cannot be disable even with the DML option :

Database.DMLOptions dlo = new Database.DMLOptions();
dlo.EmailHeader.triggerAutoResponseEmail = false;
dlo.EmailHeader.triggerOtherEmail = false;
dlo.EmailHeader.triggerUserEmail = false;
dlo.assignmentRuleHeader.useDefaultRule= false;
database.update(LeadstoUpdate,dlo);

Is there another way to disable this email  ? I found a lot of post asking that but no real solution.

Thanks for your help
  • June 13, 2014
  • Like
  • 2
Hello,

I have a trigger that is changing the owner (After update, After insert)  and each time the owner is change a  notification email is sent to the new owner.

It seems it cannot be disable even with the DML option :

Database.DMLOptions dlo = new Database.DMLOptions();
dlo.EmailHeader.triggerAutoResponseEmail = false;
dlo.EmailHeader.triggerOtherEmail = false;
dlo.EmailHeader.triggerUserEmail = false;
dlo.assignmentRuleHeader.useDefaultRule= false;
database.update(LeadstoUpdate,dlo);

Is there another way to disable this email  ? I found a lot of post asking that but no real solution.

Thanks for your help
  • June 13, 2014
  • Like
  • 2