I want to outomatically number projects upon creation, as follows: YYMM##, with ## being a sequential number that resets for each month.
So the first project created this month would be 211201.
Having hit a wall with formula field, I have set up a trigger that partially does the job. The trigger is creating YYMM (2112) just fine, but I am struggling to get the sequential number after that.
I imagine a sequential number is not too big a deal, but am I making things too complex by wanting it to reset for each month?
Any tips re the below trigger woud be greatly appreciated. Or a formual field would be even better as it seems less complicated?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
biota
I want to outomatically number projects upon creation, as follows: YYMM##, with ## being a sequential number that resets for each month.
So the first project created this month would be 211201.
Having hit a wall with formula field, I have set up a trigger that partially does the job. The trigger is creating YYMM (2112) just fine, but I am struggling to get the sequential number after that.
I imagine a sequential number is not too big a deal, but am I making things too complex by wanting it to reset for each month?
Any tips re the below trigger woud be greatly appreciated. Or a formual field would be even better as it seems less complicated?
TIA
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.