The CreatorCon Call for Content is officially open! Get started here.

Multiple column values for a single variable should create multiple request using single submission

sony8
Tera Contributor

Hii,

 

 

I have below requirement:

we have a record producer with following variables:

assigned to

Ac number

num of Accounts

 

we have a dedicated table which stores the records submitted through record producer 

table : Account table

 

our scenario was as below

the user can able to add multiple Ac numbers on the record producer . When user adds multiple account number. Then in our table that many separate request need to be created.

 

for below requirement, I have started my work 

created multi row variable set and try to achieve through record producer script.

 

if any one have any ideas please let know.

 

 

thanks in advance

 

4 REPLIES 4

DanielCordick
Mega Patron
Mega Patron

What does your script look like? You should be  looping through your field and creating a new request for each new AC number, first build an array of acnumbers then do your for loop

 

 

for (var i =0; i < arr.length; i++){
Var gr =new GlideRecord(‘yourTable’)

Gr.initialize()

gr.insert()

}

i didnot understand your script... could you give me some more details regarding your script please...

 

It’s an example of a for loop, you need to create an array with your ac numbers and then loop through 

i was new to catalog scripting could you please share some details?