Auto-incremental field that can be resetted every year (or at user request)
I created a Podio app to archive the correspondence going in/out of the company; every record is a mail, to which we attach the scanned version of the document; we need to assign a progressive number that has to be resetted at the end of every year. The numbers already assigned should remain in place. At present, it can only be done manually with a Number field to be filled by hand (the #id goes on forever, as it should be; it's there for a different purpose), any hope to see a resettable counter it in a future version? 

  • If you got a premium account and access to globiflow you could build your own auto-incremental field app (Incremental App).In this app you need 2 number fields and one text field:- name (text)- counter (num)- last year (num) Name will be set with a definition of this field like "invoices", "quotations", ...As starting parameters you set counter to 0 and last year to the actual year like "17".You could also add other text fields to define a pre and/or a suffix and so on...Also create a text field called "custom id" in the app where you need it.Now you have to create a flow which is triggered by creating the item which should be connected to the auto-incremental.Make sure that this flow is the first one which is triggered after creating.The flow contains a search for the auto-incremental field by its name.Like search for item in Incremental App where name is "invoices"Create a custom var called "counter" and give it the value of [(Ref Incremental App) counter]Create custom var year = date("y", strtotime([Item Created Date & Time]))Create a "if [(Ref Incremental App) last year] < [(Variable) year] then custom var counter = 0"End ifSet custom var counter = [(Variable) counter]+1 to incrementOptional create custom var leadingzeros = sprintf("%'.03d", [(Variable) counter])This will put leading zeros to your counter. 03d means 001, 04d gives 0001 and so on...Create custom var id = [(Variable) year].[(Variable) leadingzeros] (This gives you 170001)You can also put in the pre and suffixes here or put in different symbols.custom var id = [(Variable) year].'-'.[(Variable) leadingzeros] for example prints 17-0001Now Update the "custom id" field in your app with the value of your custom var "id".Then update collected items in App Incremental App:counter = [(Variable) counter]last year = [(Variable) year]Thats it. Every item you create will update the counter by 1.When you hit a new year the counter will be set to 0 again.You are even able to change the counter by hand if you need to.I hope everything is understandable and works.Not tested yet...
  • Thanks for your vote on this @Rachel - I can see why it would be useful however currently there are no plans for this - A way of doing it is to use our Unique ID feature and then clone the app when you need to start over, the old app can then be archived or renamed. // Oliver - Podio
  • We need pretty much the same kind of project numbers. Ours would be like this: B-TEST-15001. The next year should start with B-TEST-16001. Any chance to get this done in Podio?
  • This would be a brilliant feature. I love to have project numbers that auto increment and also that restart numbering at the beginning of the new year for example, the first project in 2014 would be named, 14-001, this will auto increment until the start of the next year e.g. 14-056 > 2015 > 15-001 and so on.
This question is closed.