We have an option to set the field value automatically in an incremental order when a record is created/added to the section.
Creatio Academy Article:
Here, is the link to Set up auto numbering for the [ Code ] field in the [ Products ] section
For any Custom Section, Kindly follow the below guidelines while creating system setting:
Let us consider the custom section object is "Transaction" and the system setting - Prefix for object name is "Usr" and the field called Transaction Number(UsrTransactionNumber) has to be auto-numbered.
For the Custom object, Replacing object is not required as you have control over your object, click on the object and check the "Before Record Added" checkbox.
The name of the System setting created for auto numbering should be as below,
1.UsrTransactionCodeMask (Prefix + Object name + "CodeMask")
2.UsrTransactionLastNumber (Prefix + Object name + "LastNumber")
-->In the Condition flow, use your Custom field name instead of code as below,
-->In the business process, script task use your custom field name instead of Code as below,
-->Name the script task elements as ScriptTask1, ScriptTask2 & user task element as UserTask1 as mentioned in the article.
a)Transaction Code Mask
b)Transaction Last Number