Skip to main content

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


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