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
Maulik D ShahMaulik D Shah 

Email notification not sent to the queue member from case assingment when case create from apex class.

Hello Folks,
 
When i try to create a case using a apex class, assignment rule working fine but no email notification sent to the queue member?
 
I have try below code when insert the the case.
 
Database.DMLOptions dlo = new Database.DMLOptions(); dlo.EmailHeader.triggerUserEmail = true; Database.SaveResult sr = database.insert(obj, dlo);
 
Any one facing similar issue?
 
Please help to resolve this issue.
mukesh guptamukesh gupta
Hi Maulik,

Please follow below steps:-

Goto SetUp-->>Deliveriability-->> Access level -->> All email 

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
Maulik D ShahMaulik D Shah
Hello Mukesh,

Access level is All eMail.

User-added image
AnkaiahAnkaiah (Salesforce Developers) 
Hi Maulik,

Have you implemented the code in developer org?

Thanks!!
Maulik D ShahMaulik D Shah
Hello Ankaiah,

No, This code in a sandbox instance.

Thanks.