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
Hari nadh babu EluruHari nadh babu Eluru 

Apex Trigger for SignIn, after insert event, change password

In this Trigger Apex, User wants to change password. Whenever user changed the password an password changed email can be send to user.

Below is the code that i was tried:-
trigger Change_Password on Sign_In__c (after insert) {
    for(Sign_In_c s : trigger.new){
        if(s.Current_Password__c != s.New_Password__c){
    
        }
    }
}

Please give me the code to what we can implement functionality
Best Answer chosen by Hari nadh babu Eluru
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Hari,

Can you check the below question which is similar of sending an email in trigger when a particular field is updated. I hope you sceneio seems to be same.

https://salesforce.stackexchange.com/questions/115991/send-email-only-if-the-field-value-changes

If this solution helps, Please mark it as best answer.

Thanks,

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Hari,

Can you check the below question which is similar of sending an email in trigger when a particular field is updated. I hope you sceneio seems to be same.

https://salesforce.stackexchange.com/questions/115991/send-email-only-if-the-field-value-changes

If this solution helps, Please mark it as best answer.

Thanks,
This was selected as the best answer
Hari nadh babu EluruHari nadh babu Eluru
@Sai Praveen Url is not getting to open. Please check once
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Hari,

I have corrected it now. Can you check once.