Limiting number of entries

Im creating an appointment management system, how do i restrict 10 appointments per day ? I tried retriving the list and then taking count using aggregate function, n then taking decision box but it isnt working.
1 answers

Your approach is a good one. In the decision box you should have:

$Count < 10

if true: proceed

if false: no more appointment can be made.

What is going wrong at your app? Can you show us your microflow, decision box and the expression?