cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate unique incremental number (series) using SDK?

Former Member
0 Kudos

Hi,

I have a UDO that contains a user field "member number" that needs to be unique and incremental. What is the best way to generate a unique number and make sure it is not duplicated?

I'm currently thinking of creating a user defined table and using the value of Code for this series.

This UDT will have a field named guid, and whenever I need to generate a member number I add a new record in this table with a newly generated GUID. And then search for the record with this GUID and return the Code.

Is there a better way of achieving this result, that I'm not aware of?

Thanks,

Osama

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member211473
Contributor
0 Kudos

Hi

Use fms to increment values of required field, let document number be the criteria to have incremented values.

Thanks

Johan_H
Active Contributor
0 Kudos

Hi Osama,

Please have a look at the answer I posted to this similar question.

Regards,

Johan