We create lookup in Celigo for get the line item details. Each line item stored in array format. Using the following code, we can read the line items in runtime using each loop.
“lines”: [
{{#each record.lineDetailsLookup}}
{
“productID”:”{{this.Item_Name}}”,
“requestedQuantity”:”{{this.Item_Qty}}”
}{{#unless @last}},{{else}}{{/unless}}
{{/each}}
]