Flow to Calculate the Earliest of Multiple Dates
Comments
-
Is it possible to create a flow that can calculate the earliest/least of a list of dates?
-
Hello!
Yes, this is absolutely possible.
Attached is a project that makes use of the [b]Rule Collection Sort Step[/b] in the Flow Designer. This flow step runs a list of a particular datatype (in this case, DateTime) and sorts them into a list based on the evaluation of the rule. The list is then outputted, providing not only the ‘least of’ entry you were looking for, but the entire sorted list as well.
I’ve also included some documentation that provides details about the Rule Collection Sort Step and its setup and uses.
When the project is opened, you will see [b]two[/b] Flows and [b]one[/b] Truth Table. The Random Date List Flow is only intended for demonstrating the functionality by generating a random list of DateTime items. The Least of Dates Flow contains the Rule Collection Sort Step mentioned above, and organizes the list into ascending order.
Please let me know if you have any questions!
-Ethan
-
Thanks for the information.. [url=https://www.mygeorgiasouthern.net/]www.mygeorgiasouthern.edu[/url]
[i]edited by tarapatel on 4/21/2023[/i]
Howdy, Stranger!
Categories
- 2.1K All Categories
- 18 General
- 155 Installation / Setup
- 991 Flows
- 86 Rules
- 203 Administration
- 204 Portal
- 433 General Q & A
- 600 Forms
- 282 Reports
- 3 Designer Extensions
- 38 Example Flows
- 32 CSS Examples
- 1 Diagram Tile
- 5 Javascript Controls
- 139 Pages
- 1 Process Mining
- New Features
- 150 Datastructures
- 50 Repository
- 169 Integrations
- 25 Multi-Tenant
- 21 SDK
- 40 Modules
- 38 Settings
- 20 Active Directory
- 12 Version 7
- 34 Version 8