Hi Mariana,
An attribute of an entity can be set to AutoNumber, but only one attribute per entity can be AutoNumber and that attribute is the Id:

Isn't the Id you want to use in that scenario?
If you are creating a new record, you can always do a query to get the MaxId and add 1 so you can know the next Id
Regards,
João