You need to sign in to do that
Don't have an account?
Carolyn Suther
Trigger to Send Email When No Activity in 30 Days
I'm trying to create a trigger that allows the opportunity owner and the admin to be notified when there is no activity on an opportunity in 30 days. I tried creating a workflow that looked at the number of days since last activity, but workflows trigger when an opportunity is created or edited, and I need the field "Days Since Last Activity" to be looked at everyday. Is this possible to do using triggers?
This is not possible via Trigger. This would be accomplished by writing a Schedulable Class that runs every day. See http://www.infallibletechie.com/2012/05/apex-scheduler.html
Hope that helps
Hope that helps
Workflow criteria will be StageName!=Closed/Won
and Send notification to owner 30 Days after LastModifiedDate. So, when you create an opportunity, this workflow will create an action to send alert after 30 days and when you update the record, system will adjust the action according to the updated last modified date.