01-20-2023 06:25 AM - last edited on 01-20-2023 12:09 PM by Dave
We have a requirement, as to when the company of the user is updated, their email should be updated. This has been achieved via User Update Rules. However, with the new email, their Exchange Account SMTP should be updated and the old SMTP should be removed.
To remove the last email of the user we need to store it in a customproperty, so that we can pass that cp via a Powershell script and remove it from the user's exchange account.
However, how do we store the user's last email in a cp? If we write a SAV4SAV to replicate the user's email to a particular cp, everytime when the user's email will be updated, the SAV to SAV which will be scheduled will run and update that particular cp of the user with the current email, hence losing the old email.
Any idea or workaround will be appreciated.
Also, please let me know how is update of email in exchange is being managed at your project/org.
01-20-2023 06:52 AM
Try to use inline preprocessor to update cp value when you noticed the change in company value. Use inline preprocessor you will users current state values and new state values
01-22-2023 08:47 PM
We have quite a few users coming in from Create user form as well. How to use inline pre processing for them?
Hence looking for a workaround for such users.
01-20-2023 12:13 PM
01-22-2023 08:48 PM
Can you please elaborate? Any sample code or link for documentation?
01-24-2023 12:28 PM
01-24-2023 11:32 AM
Hi @AshishDas ,
Proxyaddresses should be having old SMTP already I believe?
Are you trying to change primary SMTP/mail attribute?
This should be done automaticaly by Exchange .