Email notification for certain interval of days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2014 05:20 AM
In one of the form we have a field named Reminder Interval and it is a choice field. We have 4 choices i.e. 7 days, 14 days, 21 days and 30 days.
If due date in the form is above 7 days means need to send an reminder email for 7 days or if due date is more than 14 days means need to send an reminder email for 14 days to the assigned team. Its goes on like this for remaining choices i.e. 21 and 30.
So need to trigger an email to assigned team for every 7 days depending upon the due date. Please help me out in this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2014 05:41 AM
You can write a scheduled job(which will execute daily) wherein you will have to check the value in the field that you have mentioned.
Lets assume value is 7 days. Then in this case you have to check this value against other filed may be opened on. If the case is opened 7 days before then trigger the event.
you can write the switch conditions like,
switch(reminder_Interval){
case 7:
if(days_passed>7){
gs.eventQueue(string,object,string,string,string);
}
case 14:
.
.
.
}
Thanks.