Functionality of 'Get Next ID Fill With Pad Char' Step
I am using 'Get Next ID Fill With Pad Char' step in my flow and the current setup for the length is 2. For example my data is already at 99. Will the next ID reset to 00? Below is the screenshot of the current setup.
Also, can we reset the numbering to go back to 00? For example we want to reset the number each month.
Comments
-
Hi,
The IDs should continue past 99 without any problems. (The number will be three digits long instead of 2) If you would still like to reset the number each month, you are required to use an SQL query to do so:
ALTER SEQUENCE <Prefix_sequence>
RESTART WITH <Number to reset to>
For example, if the prefix is "ID", and you're trying to reset the IDs to 0, the query would be:
ALTER SEQUENCE ID_sequence
RESTART WITH 0
You can run this query as a scheduled job every month using the Raw SQL Step.
Let me know if you have any other questions.
Howdy, Stranger!
Categories
- 2.1K All Categories
- 18 General
- 155 Installation / Setup
- 991 Flows
- 86 Rules
- 203 Administration
- 204 Portal
- 433 General Q & A
- 600 Forms
- 282 Reports
- 3 Designer Extensions
- 38 Example Flows
- 32 CSS Examples
- 1 Diagram Tile
- 5 Javascript Controls
- 139 Pages
- 1 Process Mining
- New Features
- 150 Datastructures
- 50 Repository
- 169 Integrations
- 25 Multi-Tenant
- 21 SDK
- 40 Modules
- 38 Settings
- 20 Active Directory
- 12 Version 7
- 34 Version 8