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
SalesFORCE_enFORCErSalesFORCE_enFORCEr 

Email template is not fetching the correct field value - Assignment Rules

Hi,
I have a scenario where I have to send an email on case creation. In the email template I am referring the field case owner. Also, in After Insert I am changing the owner of the case by running the assignment rules through code. But the issue is the emails I received show the old owner of the record and not the changed one.
Kindly reply asap.


OnurKOnurK

Trigger the email after the owner changes or send tbe email via apex then you can be sure that new Owner appears.

 

Good luck...