Create number of records in 1 table based on Qty Field in another table

Topic Labels: Scripting extentions
251 2
Showing results for 
Search instead for 
Did you mean: 
6 - Interface Innovator
6 - Interface Innovator

Hey there,

I’m hoping someone will be able to help (my scripting ability is limited) - I want to be able to create a specific number of records in Table 2 based on the Qty field in Table 1.

I have a script which creates a singular record in Table 2 from the data in Table 1 but does not consider the QTY field and creates the X number of rows.

Would anyone be willing to help please?

Thanks in advance

2 Replies 2

Solved by changing ‘originalLineItem.Length’ to ‘Quantity’ input variable.