Skip to main content
Nintex Community Menu Bar
Solved

Dynamic Instance Id

  • May 17, 2024
  • 2 replies
  • 84 views

Forum|alt.badge.img+4

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

Best answer by SimonMuntz

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

2 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • May 19, 2024

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


Forum|alt.badge.img+4
  • Author
  • Rookie
  • May 21, 2024

Hi @SimonMuntz,

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