- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 01:54 PM
I currently created a catalog form that has the following items on it.
Multiset [made up of my variable set.]
The multiset is made up of a variable set that has the following variables in it.
- u_firstname [single line string]
- u_lastname [single line string]
- u_emailaddress [email address]
The multiset itself can have up to 10 instances of the variable set, so i should be able to create more than one in the form if i so choose. My question here is within a workflow how can i iterate through the number of variable sets that i have? i don't think i can do something like
var itemarray[];
var items = current.variables.multisetname
for (i=0;i<items.length;i++){
var firstname = items[i].firstname;
var lastname = items[i[.lastname;
var emailaddress = items[i].emailaddress;
do something with the variables.
}
i was wondering if anyone has done this before.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 06:45 AM
I have to ask what the purpose of the form is. Is this to just add records to a table? Is it something else? Probably the easiest way OOB to do this is to change your Catalog Item to use the Cart. That way users can add to the cart and can do so multiple times.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 02:02 PM
It is unclear what you are trying to do with the variables within your workflow. Please let us know what your intended outcome is so we can narrow our solution accordingly. If you can provide screen shots of the variables as well as what tables these variables apply to will be helpful as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 03:46 PM
Hello Christopher,
I have created a variable set, then clicked on the generate multiset within that variable set. I then added that multiset to my form. Which shows up like the below. While making the multiset i decided that i would only let 10 instances of the variables set show up. the variable set being made up of first name, last name, and email for each instance.
While working in workflow editor, i am using a run script action. All i want to do is within that run script action, is get the inputs that were added to my form, and pass them to a custom powershell script action.
I do not know if variable sets and multisets use tables or not sorry i am pretty new to this and learning lots every day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 06:32 AM
After talking to my collegue i found out that multiset's are part of a third party update set that you can add to your instance. Is there a out-of-box way to allow someone to create multiple sets of these three variables? for example.
Retiree 1
FirstName:
LastName:
EmailAddress
Retiree 2
FirstName:
LastName
EmailAddress
Etc.
But only show the amount of Retiree forms based on the number of retirees you want to add to a table? If so 'd rather use the out-of-box as much as possible.
Thank you, sorry for confusing matters.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 06:45 AM
I have to ask what the purpose of the form is. Is this to just add records to a table? Is it something else? Probably the easiest way OOB to do this is to change your Catalog Item to use the Cart. That way users can add to the cart and can do so multiple times.