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
Anshuman ParhiAnshuman Parhi 

admin1

When a login user updating the record and if the owner of this record and logged in user are same dont send email to any owner if the lodes in user and owner are different the send email tro owner.

any solution for this....thanks in advance
AbhinavAbhinav (Salesforce Developers) 
HI Anshuman,

Below is link for Sending email based on Status change in Trigger
https://salesforce.stackexchange.com/questions/306580/sending-email-based-on-status-change-in-trigger

You need to refactor code by removing Status change condition and adding your condition.

Process builder approach
https://www.youtube.com/watch?v=1QP0kDtZDMg

Thanks!