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
Chinmaya NewChinmaya New 

Can I customize the email users receive when a record is assigned to a queue ?

When a record is assigned to a queue, there is an one line email notification.
Can I customize that notification to add some more details ?
PriyaPriya (Salesforce Developers) 

Hi Chinmaya,

You can add more lines in mail.setPlainTextBody like below :- 

// Specify the text content of the email.
          mail.setPlainTextBody('Your Case: ' + case.Id +' has been updated. This is the new line for demo purpose');

Regards,

Priya Ranjan

Chinmaya NewChinmaya New
Hi Priya,
Can you please tell me where can i find - mail.setPlainTextBody ?