You need to sign in to do that
Don't have an account?

Send an email once a field hasn't been updated for a numbers of days.
Hello,
I have a field named, Last_payment__c (date field), is there any possibility to trigger an email if that mentioned field hasn't been updated for a numbers of days? Lets say 7 days. Please advise.
Thanks
I have a field named, Last_payment__c (date field), is there any possibility to trigger an email if that mentioned field hasn't been updated for a numbers of days? Lets say 7 days. Please advise.
Thanks
You can create a formula field with return type as Check box holding the AND condition of Date with in the 7 days and isChanged of that field you want to track. And write a batch and schedule it every day based on that checkbox. Which will scan the records for which that checkbox is checked and Sends out an email.
Thanks,
Vivek S
Please write workflow rule for this. I hope this will work for you.
Let me know if you need to have a screensharing session to complete this task.
Thanks,
Gaurav
Skype: gaurav62990
Email: gauravgarg.nmims@gmail.com
This will not work as the record can be updated 2 days after and it checks the condiion and will fire the email after 7 days. But in Julio's case, the field should not have been updated from the last 7 days, then email should be sent.
In this case, you have to activate Field History tracking for the particular field and write code(schedule batch/trigger whatever suits your requirement) which queries the record from the sObjectHistory object and you can check if there is any entry for that field for the last 7 days and send an email.
Refer image below for the records of the AccountHistory records for Industry field.
If records get updated after 2 days, the email should fire after 7 days of last modification i.e. 2 + 7 = 9 days. Workflow will definetly work on this. Otherwise Batch process (scheduler) will work which can be scheduled for daily basis to check lastmodifieddate > 7 days.
Hope this understand.
Thanks,
Gaurav
Last modified date will not work as well as this will not give you the last modified date of any field, it gives you the last modified date of the record. According to the question, mail should be send only when a particuar field(not record) has not been update since last 7 days.
Hope this will help
We should avoid code until this is last approach, else salesforce team won't support if anything fails.
Thanks,
Gaurav
Skype: gaurav62990