Skip to main content

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


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

  • Author
  • Known Participant
  • 17 replies
  • September 5, 2022


  • Author
  • Known Participant
  • 17 replies
  • September 5, 2022

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


Reply