You need to sign in to do that
Don't have an account?
andrem2b
Trigger on User email update
hi,
I need to detect the updates on the email field of the User object, and I'm having problems detecting this change.
I placed a trigger on the object on after Update , but at this point the logic displays the old email value on both the trigger.new and trigger.old maps.
Maybe it's related to the email salesforce sends to user, to confirm the email address change, so the email is actually updated when the confirmation address is accessed.
Did anyone run into the same problem? is this the only way of detecting the email field update on User?
thanks,
Andrea!
Hi,
No you can also set a workflow that have condition that whenver User's email changes it sends you an email, there is an ISCHANGE method
And about the trigger thing, take simple trigger.new and trigger.old in AFTER UPDATE event because whenver salesforce changes that Email your trigger is gonna run,
then fetch record from the database specially Email fields,
your definetly gonna get that difference in old email and new email.
Hi Abhi. I am working on this with the after update triggers. There is a problem because of the confirmation email sent when saving with the new value. If the user confirms the change from the email he recives, the user email will change but not the contact email. We know of a workaround by resetting the user password to avoid the confirmation email. But we would like to know if there is any other ways to avoid resetting the password. Thanks
When user clicks on the link to confirm the email change trigger or workflow doesn't fire. Any solution?