I need to create an auto number field on custom object in packaging org. I'm not able to create it now because it's throwing an error while creating it:
you cant able to create auto number field once its managed
So I created a one number field and incrementing the number by 1 whenever the record gets created through trigger. Here I am getting an issue of duplicate numbers while am creating multiple records in a single transaction, any solution for this?