Generate a unique case number?
Comments
- 
            
Hi. I would like to know how I can generate a unique case number for particular processes or entities. Thanks.
 - 
            
[color=rgb(20, 20, 20)]I believe the best solution for you here may be using a Process Folder with a customized prefix, or perhaps the built in ID Generation steps, depending on the use case. Using Process Folders is ideal when you need folders to house data in a process. When setting up a Process Folder, there is a configurable option in the properties panel that will allow you to set a prefix before the ID is generated. With the Setup Process Folder step, the flow will create a folder with a unique identifier and the designated prefix for the process completed at run-time. Whenever I execute this flow, I have a new Process Folder generated with a different ID as shown below:[/color]
[color=rgb(127, 140, 141)][font=Roboto][img]att4[/img][/font][/color]
[color=rgb(127, 140, 141)][font=Roboto][img]att1[/img][/font][/color][color=#7f8c8d]
[/color]
You can of course create a specific folder, perhaps a "Cases" folder that the Setup Process Folder step can point to and store all of the prefix + IDs it generates. Here is a link that explains more about configuring the Setup Process Folder step: https://documentation.decisions.com/docs/setting-process-folder-save-dataAs for the ID Generation steps I mentioned, they are very similar to a Process Folder, but instead it adds a prefix + ID to a particular entity. In the Flow Designer, if you navigate to [i]Integration -> Internal Service -> IDGeneration [/i]you will find an option to [i]GetNextID[/i]. This step will ask you to setup a prefix as well, numbers or letters can be used here:
[color=rgb(127, 140, 141)][font=Roboto][img]att2[/img][/font][/color]
[color=rgb(127, 140, 141)][font=Roboto][img]att3[/img][/font][/color][color=rgb(34, 34, 34)]One other bit of information in regards to using the GetNextID step, you can manage the data generated with this step by navigating to [/color][i]System -> System Data -> ID Generation [/i][color=rgb(34, 34, 34)]from the home page in the Designer Studio as shown below:[/color]
[color=rgb(34, 34, 34)]
[/color][color=rgb(127, 140, 141)][font=Roboto][img]att5[/img][/font][/color]I hope you will find one of these steps to be a good solution for you! Please let me know if you have any questions.
[i]edited by ryan@decisions.com on 7/11/2019[/i]
 
Howdy, Stranger!
Categories
- 4.5K All Categories
 - 88 General
 - 13 Training
 - 214 Installation / Setup
 - 1.2K Flows
 - 112 Rules
 - 277 Administration
 - 215 Portal
 - 503 General Q & A
 - 722 Forms
 - 356 Reports
 - 3 Designer Extensions
 - 47 Example Flows
 - 58 CSS Examples
 - 1 Diagram Tile
 - 8 Javascript Controls
 - 190 Pages
 - 5 Process Mining
 - New Features
 - 187 Datastructures
 - 73 Repository
 - 238 Integrations
 - 30 Multi-Tenant
 - 27 SDK
 - 81 Modules
 - 60 Settings
 - 27 Active Directory
 - 12 Version 7
 - 37 Version 8
 - 143 Lunch And Learn Questions