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
\dev\null\dev\null 

Queues, Email Notifications, Standard Controller Extensions

Created a controller extension for the standard case controler. we set the OwnerId using custom save logic, but it doesn't seem to matter what i do, Queue Notifications are never sent out to members.
 
//A place to store all our custom case logic that should be executed before
    //a save into the DB
    @TestVisible private void saveLogic(){
        Database.DMLOptions dlo = new Database.DMLOptions();        
		dlo.assignmentRuleHeader.useDefaultRule= true; 
		dlo.EmailHeader.triggerAutoResponseEmail = true; 
		dlo.EmailHeader.triggerOtherEmail = true; 
		dlo.EmailHeader.triggerUserEmail = true; 
        Case c = (Case)caseController.getRecord();
        //set the case owner to whatver the assignee is set to
        c.OwnerId = this.AssigneeId;
        c.setOptions(dlo);
        caseController.save();
    }
I am aware of the odd Queue settings in regard to the "Send email to members" checkbox and the four states it can represent with the Queue Email text field. I'm just not sure what it is exactly that i'm missing here in regards to why it won't fire an email when i set the ownerId to a Queue.

This is in a production Org, all other email operations seem to be fine.
\dev\null\dev\null
Setup > Cases > Page Layout > Layout Properties > Email Notification Checkbox , no combination of checked for show on edit page or select by default seems to matter.