- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 07:41 AM
I'm having some difficultly with what solution to use for following requirement:
User fills out catalog form and chooses a date. Another date is auto-populated with date 8 months in the future. Once submitted and tasks completed, there should be a timer or a wait activity (??) that will send an email 2 weeks before date is met (and again 1 week before date).
Not sure how to do this - I set a timer and added this code. But does it keep checking? :
var difSeconds = gs.dateDiff(gs.nowDateTime(), current.variables.return_date.getDisplayValue(), true);
gs.log('seconds: '+difSeconds);
if(difSeconds == 1209600){
answer = true;
}
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 09:42 AM
Hi
There was a similar question recently, which I answered in detail at the following URL:
This is using the Workflow and is quite simple to achieve. You can just give it a shot, instead of writing your Scheduler.
Let me know if that answers your question and mark my answer as correct and helpful.
Enjoy & BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 09:42 AM
Hi
There was a similar question recently, which I answered in detail at the following URL:
This is using the Workflow and is quite simple to achieve. You can just give it a shot, instead of writing your Scheduler.
Let me know if that answers your question and mark my answer as correct and helpful.
Enjoy & BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 10:09 AM
Hi Dirk - Thank you. The link you sent is helpful.