Skip to main content
Nintex Community Menu Bar
Solved

Dynamic Variable Names

  • April 17, 2023
  • 4 replies
  • 159 views

Forum|alt.badge.img+11

We were hoping to make a Global Function that could take a variable with delimited headers and do the following:

  1.  For each header, create a new variable that is named using this syntax: Header + “-ColNum”
  2. Value for the variable would be equal to the column’s number, relative to the other other headers in the delimited variable. 

 

As an example, a delimited variable like this: “Account Number, Balance, Address”

Would result in the following variables:

  • Account Number-ColNum
    • 1
  • Balance-ColNum
    • 2
  • Address-ColNum
    • 3

In future steps of the wizard, this would allow us to use the new variables in place of hardcoding the column values. This would also make it so that if the order of items changed in the delimited data, the Wizard would still work correctly since the global function would be determining where that particular column is in the data at runtime. 

 

Unfortunately, we can’t reference a variable in the variable name portion of the of the “Set a Variable” action.  Is there anyway to make variables dynamically, without hardcoding it’s name?

 

Thank you!

Best answer by Eli_Shteinberg

Hey @bsikes ,

Unfortunately, we currently do not support the capability.
I would appreciate it if you could share the idea in our portal so we can consider the need for possible future support.

4 replies

Forum|alt.badge.img+4

Hey @bsikes ,

Unfortunately, we currently do not support the capability.
I would appreciate it if you could share the idea in our portal so we can consider the need for possible future support.


Forum|alt.badge.img+11
  • Author
  • Contributor
  • April 18, 2023

Thanks @Eli_Shteinberg , I’ll make sure to do that.


Forum|alt.badge.img+1
  • Novice
  • September 5, 2025

Thanks @Eli_Shteinberg , I’ll make sure to do that.

Hi bsikes,

Did you finally get the development? I’m interested in that.

Kind regards,

Isaac L


Forum|alt.badge.img+11
  • Author
  • Contributor
  • September 5, 2025

Hi ​@IsaacL,

Despite saying that I would be sure to add the idea, it doesn’t look like I ever did actually make the idea out there to support this.