Skip to main content
Solved

Dynamic Instance Id

  • 17 May 2024
  • 2 replies
  • 59 views

Hi All,

We have a requirement where every new instance should have an numerical ID.

For example, if I raise a new travel request now, it should have "01", and then every new instance should have the next one in incremental order. I have found that we have "instanceID", but that is quite long, and "newGuidAsString" is also lengthy.

We just need an ID that starts with "1" and then increments with every new instance started, regardless of whether instance is completed or failed. So, I can use that value as the instance name.
I am sure this functionality would be there but it’s that I am not able to find it out. 


Thanks & Regards

2 replies

Userlevel 6
Badge +22

Hi @Natha,

The easiest way to achieve this solution would be to store the following ID somewhere.
A good place would be to use a table.
The first step of the workflow is to read the current ID from the table and update it by 1, ready for the next workflow.
Tables help files:
https://help.nintex.com/en-US/nwc/Content/Dashboard/Tables.htm#Tables

Userlevel 2
Badge +4

Hi @SimonMuntz,

Good morning. Thanks for your reply with solution. I appreciate it.

Reply