A few years back we developed an AutoNumber solution that enables the implementation of AutoNumbers for Dynamics 365 and the Common Data Service. This AutoNumber solution allows the creation of rules for simple autonumbers with prefix, suffix and number of digits, but also has a lot of advanced features for getting numbers from related fields or option sets.
These include:
- Creating an AutoNumber for the current entity
- Create an AutoNumber for an entity based a value in a related entity, and stores the AutoNumber in a text field in the entity
- Create an AutoNumber for an entity based a multiple values of a related entity, and stores the AutoNumber in a text field in the entity
- Create an AutoNumber for an entity based a value in an option set field, and stores the AutoNumber in a text field in the entity
- Create an AutoNumber for an entity based a multiple values of an option set, and stores the AutoNumber in a text field in the entity
The source code, documentation and managed and unmanaged solutions are now available on Github, and can be downloaded from here:
https://github.com/ariclevin/autonumber/tree/master/Enterprise