0

I need to create a custom field that needs to contain the following values:

year.month.autoincrement

autoincrement needs to be reset every month,

example: 2021.1.012 2021.1.001

how can I accomplish this?

3
  • There are a bunch of ways to do: An object to store the last number used; A trigger to get the number and sum +1 in this object; A batch to set 0 when the month starts. What did you already try? – m Peixoto Jan 12 at 15:06
  • @mPeixoto is it possible to do this without using apex? – ifabiodlc Jan 12 at 15:23
  • You could try: 1. Create an object to store the last number; 2. Create a workflow rule time dependence to set to 0 again; 3. Create a Process builder to get the number and sum + 1. – m Peixoto Jan 12 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.