Insert Naming Series by Script/Code


Is there anyway a Naming Series can be inserted in the code? Or updated directly into the database (after validating for uniqueness of the series)?

Thanks for your attention or assistance.


Depending on your use case, possibly you could write a python script to do this for you

If you are using a custom app, you can use the autoname hook to control naming. This code will have to ensure uniqueness.

Here’s what I am trying to achieve: Depending on the Item Group, the Item Naming Series must be automatically picked (this part is pretty straight forward), but if there is a new Item Group that is being setup the Preamble for the Item Group series (like say XYZ-) should be setup automatically. Or just by pressing a Button from the Item Group record.

How can I do this?

Please help.