You need to sign in to do that
Don't have an account?
Everton CP7
Notification after 30 days
I need notificiation email to owner's task when task still opens after 30 days.
I create a trigger and I think is correct.
But I don't know how to test this one.
I create a task with Activity Date 30 days before and I don't recieve any email.
And honestly I don't know if I messed up.
Here's my code using before update, before insert:
List<Task> lst = [SELECT Id, ActivityDate FROM Task WHERE IsClosed = false AND ActivityDate >= :Date.today().addDays(+30)]; for (Task task : Trigger.new) {
Thanks for help !
Thanks Kartik !
I see.
I read some topics and I thik this will work.
I never done a code like this.
Can you help me?
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
to start with. Let us know if you are stuck at any point.