0

how to get email from workflow rule to alert when someone hasn't logged in after x amount of days. after that user are login then get notification email .

It means i need notification email from login user when he login after few day. we can not used trigger ,only used standard functionality .

Please suggest me .

2
  • 1
    Please can you clarify what you are asking. See the guidelines for asking a good question How to Ask
    – Dave Humm
    Commented Jun 16, 2016 at 8:53
  • Check my updated answer. Commented Jun 16, 2016 at 9:15

1 Answer 1

4

You can do this in workflow. Create a workflow and give criteria to run everytime it is edited.

Now in formula

if((PRIORVALUE( LastLoginDate )   - LastLoginDate ) //calculate the difference

And set the email alert in the action. This way you can do it without using code.

Note: Using priorValue you will get old value and then compare both values and find the difference and use it.

7
  • Hi sir, Can u tell me how to get email from workflow rule to alert when someone hasn't logged in after x amount of days. it means more than two days.
    – Rajesh Kr.
    Commented Jun 16, 2016 at 9:32
  • @RajeshKr. set the email alert and create an email template for same. So when your formula meet condition then it will automatically send an email to that user. Commented Jun 16, 2016 at 9:35
  • hello sir @tushar how to get email from workflow rule to alert when someone hasn't logged in more than two days .Its not needed workflow you can suggest best solution on salesforce.
    – Rajesh Kr.
    Commented Jun 16, 2016 at 10:19
  • @RajeshKr. If you want to send email if user logged in after two days then workflow will solve your problem. Otherwise if you want to send email if user not logged in two days then use Batch. Commented Jun 16, 2016 at 10:33
  • This workflow is on which object?
    – Shankish
    Commented Nov 30, 2017 at 17:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .