Skip to main content
Nintex Community Menu Bar

How to split single input and put it in a several variable

  • August 9, 2017
  • 2 replies
  • 15 views

Forum|alt.badge.img+7

Hi everyone,

Is it possible to split one input and put it in a several variable.

For example I will get the variable "Attendees" which consist of several peoples.

person1@gmail.com; person2@gmail.com; person3@gmail.com;

I want to loop through it and put it to several variables. and removing the semicolons.

var1 = person1@gmail.com

var2 = person2@gmail.com

var3 = person3@gmail.com;

Thank you!

2 replies

Forum|alt.badge.img+14
  • Scholar
  • August 9, 2017

if you do not have them already in collection them turn turn them into collection - eg. with regular expression action.

then setup foreach loop and iterate through collection.

within the loop make a switch by loop index value and with each index set current collection element into different variable.

note that requires you know upper bound of possible values you can get on input so that you can create sufficient number of variables in advance.


Forum|alt.badge.img+7
  • Author
  • August 10, 2017

Thanks ‌. This solved my problem happy.png