We would like to have some email notifications sent based on custom commands. The issue is some of the emails need to have the users password in them.
While reading through the forum, we understand that the %unicodePwd% variable is only good in a Business Rule and doesn't resolve in a custom command. So we modified our business rule so that anytime a password is reset, it also writes that password to CustomAttributeText1 of the affected user.
Here is the business rule:
After resetting password of a user:
Always
Modify the User: set adm-CustomAttributeText1 to '%unicodePwd%'
Here is our custom command:
Always
Reset password for the User
Modify the User: set Password Never Expires to 'False', set Must Change Password at Logon to 'True', set User Cannot Change Password to 'False'
Send e-mail notification (New Password for %fullname%)
The issue we see is that the email notification in the custom command is being generated and sent BEFORE the business rule has changed the password and written the new password to CustomAttributeText1. As a result, the email that goes out always has the old value in CustomAttributeText1, not the changed password in the first step of the custom command.
Any suggestions would be appreciated.