You’re absolutely right to think about how the reset works. Glad that you asked this!
If you go with the flag approach, the flag does need to be reset at some point, otherwise the flow will only send a notification once and then never again.
Two simple ways to handle it:
Option 1: Scheduled reset (simplest)
If your files arrive monthly, the easiest approach is:
Create a small separate flow with a Recurrence trigger (for example, once a month)
Reset the flag back to “No”
This prepares the system for the next batch.
Option 2: Use a timestamp instead of a flag (cleaner)
Instead of Yes/No, store something like LastNotificationMonth.
Then in your flow:
Check if LastNotificationMonth is not equal to the current month (for example using utcNow('yyyy-MM'))
If different → send notification and update the value
If same → skip
This way you don’t need a second reset flow.
Finally
Yes, the flag needs a reset
Easiest → scheduled reset flow
Cleaner long-term → use date-based logic
And you’re right, for this scenario, the Recurrence approach is usually the simplest overall!!!