Flow to Calculate the Earliest of Multiple Dates

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.

    [url=https://documentation.decisions.com/docs/rule-collection-sort-step]https://documentation.decisions.com/docs/rule-collection-sort-step[/url]

    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]

Sign In or Register to comment.