- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I want to set a datetime type as an input for a subflow.
I want to set the current time as this value, but it's not working...
Does anyone know a good way to do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Refer below image:
If you want to get date/time as current date ,use script type as per below and set default value as javascript: new GlideDateTime(). i have just tested this, its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
First check whether you need to create subflow like this as you have many out of box date & time comparisons via filter conditions at table & field level. You can also use Flow Logic for date comparisons before proceeding with set of actions.
If you still want to create, you can use server side script to set date/time as input in subflow. Below is a sample for Date as input and logic is same for date/time using javascript:new GlideDateTime();
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you get a chance to review this ?
As per community guidelines, you can accept more than one answer as accepted solution. If my response helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan