The AdxStudio Productivity Pack contains a number of free tools. This article describes configuring Auto Numbering.
Create an Auto Numbering Defintion
- Navigate to Settings > Auto Numbering Definitions
- On the ribbon, click New.
- In Name,type a name for the defintion. The name will be used in a workflow that creates the auto number.
- In Format, type the string format for the auto number. Use {0} to indicate the position for the auto number. For example, TKT:{0}. You can leave this field blank, in which case the format is just a number.
- In Digits, type the number of digits to use for the length of the auto number.
- In Last Number Issued, type a starting value for the auto number. This field is incremented by the plugin, you can reset the value. You can leave this field blank, in which case the first number to be used is 1.
- Create a workflow to use the Auto Numbering Definition
- Navigate to Setttings > Processes
- On the toolbar, click New.
- In Process Name, type a name for the workflow.
- In Entity, select the entity for which the auto numbering is to be applied.
- In Category, select Workflow.
- Click OK.
- Under Options for Automatic Processes, in Scope, select Organization.
- Make sure that only Record is created is selected.
Note: the above steps will create an auto number whenever a record is created. You can select different trigger for the workflow. For example, if you only need to auto number a field under specific conditions you make the workflow available only as a child workflow and then call it as needed or you can make the workflow available on demand and then run it manually.
Add steps to the workflow
- In the workflow editor, click Add Step and then click Create Record.
- In the create step, select Auto Numbering Request and then click Set Properties.
- In Auto Numbering Definition Name, type the name of the definition that you created earlier.
- Click Save and Close.
- In the workflow editor, click Add Step and then click Update Record.
- In the update step, click Set Properties.
- In the Form Assistant, under Look for:, select Create (Auto Numbering Request).
- In the box below, select Formatted Number and then click Add.
- In the form, click in the field where the auto number is to be used (note if the field is not on the form it will show under Additional Fields.
- Click OK. The field is populated with the formatted number dynamic value.
- Click Save and Close.
- Optionally, on the Administration tab, select Automatically delete completed workflow jobs (to save disk space).
- On the ribbon, click Save and then Activate.