- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 06:57 PM
Hi SN Community,
I have a requirement in the Flow Designer to trigger an IF condition if the date on a record is "on or before the current date".
The flow designer only appears to accept a 'data pill' field as an input.
Is there a way to insert the current date as the comparison without referencing a record field?
If not, is it possible for the ServiceNow add this to the requested functionality list?
Cheers,
- Mike
Solved! Go to Solution.
- Labels:
-
flow designer
- 12,332 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 10:29 PM
Update 1.0:
I was able to work-around this by creating a custom 'action' which uses a small script to return the current date.
(function execute(inputs, outputs) {
//Output the current date (glide_date)
outputs.result = new GlideDate();
})(inputs, outputs);
The returned current date from the script can be used a 'data pill' to compare dates.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 10:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 10:32 PM
Hi Satheesh,
Thanks, I did think about that as another work-around, but I was unsure about the glideDateTime to glideDate comparison. For all intents and purposes I think this should still work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 10:29 PM
Update 1.0:
I was able to work-around this by creating a custom 'action' which uses a small script to return the current date.
(function execute(inputs, outputs) {
//Output the current date (glide_date)
outputs.result = new GlideDate();
})(inputs, outputs);
The returned current date from the script can be used a 'data pill' to compare dates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2020 01:13 PM
Does this get reevaluated? Trying to wait for a certain date or time to be reached.