The link below works well however I had to use the new solution view to see the option for AutoNumber as a field type.

https://www.gestisoft.com/blog/how-to-create-auto-number-fields-in-dynamics-365