Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Allow a date in the future but not in the past, a workflow postcondition solution in M-Files

Last updated on 25 March 2025 · 1 min read

Admin
Workflow

Overview

This article offers an M-Files workflow postcondition solution for checking that a selected date is not in the future.

Solution

I've included a simple workflow below to illustrate the postcondition. The idea is to prevent moving away from the 'Set review date' state if the 'Review date' property is not in the future.

A simple postcondition can be used to check the date when the object is leaving the state.

So, basically, the count of days to the date specified in the property has to be over 1 or more. If this condition is not met, an error will be thrown when moving away from this state:

Still need help?

On this page