You need to sign in to do that
Don't have an account?

Help me writing trigger for autonumber field which should start from 1 as day begines.
Hello friends, hope u will help me. I want to write a trigger for autonumber field which will start from 1, as day begines. Normally autonumber field is keep on incresing daily. But i dont want that, it should start from 1 as day begins. Help me writing trigger for this.
could you please explain your requirement in more detail?
Reference: https://developer.salesforce.com/forums?id=906F000000096bpIAA
I would suggest you to keep the field type as text in case you wish to reset its value everyday and have the value incremented through a trigger so it behaves like an autonumber.
check this.
If this solves your problem, kindly mark it as the best answer.
Hit Like, if it saved your work :-)
Regards,
Magulan
http://www.infallibletechie.com