- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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
yesterday
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
[ Architect | Certified Professional]
Was this response helpful? If so, please mark it as ✅ Helpful and ✅ Accept as Solution to help others find answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
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
13 hours 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