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
FromCRMWonderlandFromCRMWonderland 

Trigger not fired on email change of user.

I am writing a trigger "After update" on user.

When user's email gets changed, I want to perform some action.

Since email-change for user is 2 step process ie change from UI & then confirm from mail.After confirmation, user email gets changed on the record.


In any case trigger is not getting fired.

Please suggest some workaround and how to track email change for user.

-- alok

FromCRMWonderlandFromCRMWonderland
Please reply.........
Pradeep_NavatarPradeep_Navatar

You can get old email for users :

 

User usr=Trigger.old;

system.debug('>>>>>>' + Trigger.old[0].id);

system.debug('>>>>>>>>>>'  + user.id);