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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions