thank you
can you try this:
// Step 1: Patch the new order and capture the ID
Set(varRecord, Patch('FSE Uniform Orders', Defaults('FSE Uniform Orders'), {
Title: TextInput2.Text,
'Order Comments': TextInput1.Text,
'Engineer Number': TextInput7.Text
}));
Set(varRecordID, varRecord.ID);
// Step 2: Iterate over the shopping cart items and add them to 'FSE Uniform Ordered Items'
ForAll(colShoppingCart,
Collect('FSE Uniform Ordered Items',
{
'Related Order': LookUp('FSE Uniform Orders', ID = varRecordID), // Assuming 'Related Order' is your SharePoint list column name that refers back to 'FSE Uniform Orders'
'ItemName': ItemName, // Replace 'ItemName' with the actual field name in your collection that holds the item's name
'Quantity': Quantity // Replace 'Quantity' with the actual field name in your collection that holds the item's quantity
// Add other fields as necessary
}
)
);
put it in the onselect of your checkbox
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings