
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 10:03 AM
I added a timer to my workflow to wait until a certain date/hour(variable date called end_of_change in my form) to create the second task. However, once I closed the first task it creates the second one. I want my workflow to wait a determine hour to create the task. I don't see what I am doing wrong.
Script:
answer = gs.dateDiff(gs.nowDateTime(), current.variables.end_date_change1.getDisplayValue(), true);
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2018 11:56 AM
I found a solution. We can use a timer in a workflow.
The following script worked:
answer = gs.dateDiff(gs.nowDateTime(), current.variables.end_date_change.getDisplayValue(), true);
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2019 01:04 AM
Thanks SNnewbie
It's Working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2020 09:23 AM
What to do if the time has to wait till 24 hrs before the end date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2020 03:26 PM
Hi Akhila,
You may go through below steps:
Timer based on: 'A date/time or duration field'
Field: your_field (end date)
Wait: Some time before
Time Before: mention 24 hrs
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2020 03:17 PM
Thanks SNnewbie,
Working fine for me in Orlando Patch1.