If you want to add a second unique field of type text to a custom object in Creatio we recommending to use the [Autonumber] field, it provides an out-of-the-box feature that allows you to generate unique identifiers automatically. You can configure an AutoNumber format for your custom object's second unique field and define rules for its generation. This approach can be useful if you want to have a consistent format for your unique identifiers.