Patient should be able to cancel the appointment the day before?

1
Patient should be able to cancel the appointment the day before. Example:--- i have booked on 30-08-2023 means i need to cancel before the specific date and also not even on booked date [In a page], it should cancel only on page not in database
asked
1 answers
1

Hi Poola,

 

You can simply use the decision action in your microflow. And use an expression along the lines of:

$Appointment/date < [%CurrentDateTime%]

 

If that descision is true, then change or delete the appointment, otherwise show an error message to the user that they can't cancel it anymore. Also, you might want to check this doc: https://docs.mendix.com/refguide/expressions/

answered