First of all, thank you @damato for your reply and guidance — really appreciate your help!
I’ve been trying to implement the annual sequential protocol suggested here, but I’m still running into some issues.
So far, I’ve tried:
Using a fixed number to initialize, but the counter does not increment correctly.
Using the Data Store with a key based on the year, but the value is treated as text instead of numeric, which prevents mathematical functions from working.
Concatenating keys, but Make doesn’t have a concat function.
Using the same key, which only replaces the value instead of incrementing the counter.
The community suggested creating a scenario that resets the counter back to zero every January 1st. However, my flow breaks before that, because the counter doesn’t actually increment correctly during executions.
It seems the bigger challenge here is making the counter advance properly with each execution. Has anyone been able to overcome this limitation with the Data Store in Make? Any advice would be very helpful.
Thanks again, and tagging @damato in case you can share more insights!
I built a simple scenario to test this. It searches for the current year in updated_at and retrieves the value from the Data Store. Then, it adds 1 to the value and updates the Data Store.
Instead of a Date type, I used number for the year. Then, you can add as many records as you want, with (, 0). Let’s say, for the next 100 years. That way, you’ll never have to insert a record every year. You could create logic to insert the record if it’s not found, but I just don’t think it’s necessary.
It always finds the year from the current execution time and retrieves the value from the Data Store. Watch out for the Timezone, since Brazil has more than one.
Thank you so much for taking the time to share this solution and even include the blueprint
Really appreciate the clarity—it makes everything much easier to implement.
We’ll put it into practice right away!