@CHEWENGCHIN
Regarding Model driven Apps/CRM
Out-of-box autonumber cant be resetted
So , to Acheive this we have to use Sync Plugin
Maintain a separate table/entity (e.g., AutoNumberConfig) that stores the current sequence, year, and a lock column/field.
The first step in the auto number plugin is to update the lock field (create a new guid) in the AutoNumberConfig record. current will lock the row, such that if another record is produced at the same time, it will be delayed until current row is completed.
Then, in your auto numbering logic, determine whether the current month differs from the last saved month. If so, the series is reset; otherwise, the sequence is increased.
Save the current record and the AutoNumberConfig row with the year and sequence.
Regards
Surendran Ravindran