Skip to main content

Hello,

How to set up auto-incrementation for a field in a custom entity?

 

I didn’t see any option available in the interface.

I saw that it’s possible to use a number counter, but I’m not sure how to link it to a field of my entity through the interface.

 

 

Thank you in advance for your help.

Hi ​@NINO,

You need to create a Persistent type field where data type should be String.

Select PLSQL option for default value and enter below method.

DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER('EVENTBUS','-')

Hope this helps.

 

Regards

Abdul Rehman