Paul,
You are trying to make a smart number for the ticket system. The first parts are easy as you stated but the final four digits have to be tracked separately against each individual day. In the Quick Base world the Ticket would have to be related to another table of Days so that you can calculate there what the unique serialization is for that day each time a ticket is created.
Here a link to an article that discusses creating a Months Table for analytics purposes.
https://community.quickbase.com/blogs/tom-leverone1/2020/09/23/quick-base-analytics-improve-your-monthly-insights
However even if you do this, you still have to have way to calculate the index for each record that day.
Assume that you have three tickets on the 1st of Jan
Record ID# 4568
Record ID# 4569
Record ID# 4570
The Record ID#s are sequential, because they would have been created in that order on the 1st but for your application you need to calculate that RID 4568 is 0001 on that day and so on. Every time you relate a ticket to that day, something must calculate that value.
A Summary field between the Ticket and the Days table would dynamically tell you the number of Tickets. If you use an Automation or Pipeline to capture that on Record Add and the write that value to the Child Table you would then know its number for the day.
Latency could be a problem if you have lots of tickets. If the Ticket with RID 4569 was created before you have captured and written the index to 4568 then both of them might be marked as #2 and you would not capture #1.
This might work, but I think you would be better off doing a custom solution with some PHP or other scripting language would actually look at the Record IDs and the [Date Created] and then calculate the unique index of the day.
------------------------------
Don Larson
Paasporter
Westlake OH
------------------------------