Hi, I am't publishing much posts these days because I am busy in completing the requests of my clients. Today, I have got some relief and thus publishing one beautiful feature released in Salesforce winter'14 release Email notification on password expiration.
In Salesforce Security controls we have a password policies Section "User passwords expire in 30Days or 60Days and 90 Days.The main problem with this approach is that user doesn't get any reminder email before password expiration date. After winter’14 Salesforce given us to create workflow rule on User object. Follow the below steps to do simple.
In Salesforce Security controls we have a password policies Section "User passwords expire in 30Days or 60Days and 90 Days.The main problem with this approach is that user doesn't get any reminder email before password expiration date. After winter’14 Salesforce given us to create workflow rule on User object. Follow the below steps to do simple.
Step:1
Create an email template for email notification on password expiration.
- Click on My Settings| Email | Email Templates|New Template.
- Select Custom (without using Letterhead) template.
- Now Enter Email template name and Description.
- Now Enter Email Subject line and Email Body.
- Next to Save the Email template.
Step: 2
Set the Password Policies for your organization.- Click on Name | Setup | Administration Setup | Security Controls | Password Policies.
Step: 3
Create one checkbox field on User object, to check workflow entry criteria. For default value select Unchecked option.
Step:4
Create workflow Rule to send an email.- Click on Name | Setup | Build | Create | Workflow & Approvals | Workflow Rules| New Rule.
- Select User object, Click on Next.
- Enter Rule Name, Evaluate the rule when a record is (Evaluate the rule when a record is created, and any time it’s edited to subsequently meet criteria - To create time dependent workflow) and enter Rule Criteria. Click on Save & Next.
- Now add workflow immediate action (Field Update) and update flag “Password Expiration notification” to true. once done click on Save.
- Now Add time trigger to send email alert after 29 days (It means on the 30th Day) of Last password change or reset and we will set flag to true (Password Expiration notification) also . To do this click on Add Time Trigger.
- Set the length after how many days email notification should be sent i.e. in hours and days, I selected 29 days after Last password change or Reset (it’s automatically updated when you change or reset your password.)
Step: 5
Now Add two action for time dependent workflow.
- Email Alert.
2. Field update for flag “Password Expiration notification” to false.
So workflow will be fired only when Flag ( We created on User Object) is set to false.Once workflow is fired it will set flag to true. After 29 Days time dependent trigger will fire and it will send an email alert to user and update set the flag to false, then it will meet the workflow entry criteria and queued in time dependent trigger to fire after 29days again.