- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 06:19 AM
I am using below code in my workflow step.If i try the code in background scripts it is working fine.But my workflow condition is not moving to next step.Please suggest
var todayDate= new GlideDateTime();
todayDate=todayDate.getDate();
var getFebDate= new GlideDateTime();
getFebDate.setValue("2017-03-01");
getFebDate=getFebDate.getDate();
if(todayDate >= getFebDate)
answer=true;
else
answer=false;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 06:34 AM
The wait for Condition only gets executed when the record is updated. So, your workflow will not work.
You can instead use a Timer activity and make it wait for 0 sec, if current date is after 1st feb or the difference in seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 06:34 AM
The wait for Condition only gets executed when the record is updated. So, your workflow will not work.
You can instead use a Timer activity and make it wait for 0 sec, if current date is after 1st feb or the difference in seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 06:37 AM
Do we have any alternate solution to skip the step. Because it is already in production.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 07:28 AM
Easiest way would be to initiate an update event for the records that are stuck.
Just try and add a work note/comment to the records. Then the activity will execute the activity.