Populating Subform through Deluge Script

Populating Subform through Deluge Script

Hi,

I have looked extensively through the support section, and while accessing subform data is relatively easy, I have still found no way of adding subform data through Deluge script.  I am trying to automatically generate invoices when a booking is made, but the line items for the invoice are in a subform.  Any pointers in the right direction?  I have already inserted the non-subform data into a new invoice:

Customer_Invoice_ID = insert into New_Invoice
[
 Added_User = zoho.loginuser
 Address_1 = input.Address_1
 Category = "Customer"
 Date_field = input.Date_Time
 First_Name = input.First_Name
 Postcode = input.Postcode
 Surname = input.Surname
 Total = input.Quote_Total
 Type = "Receivable"
];

I need to extend this to the subform ("Items") which contains the items on the invoice.  Can anyone help me out here? 

Cheers,

Chris