This is an edit page to linked records from two lists.
gallery1 list patches correctly
gallery2 is the items gallery with multiple items involved and will not patch
Here is the update button for the second gallery. I am trying to match the IDs from the list:
ForAll(colEditItems,
Patch('CP-ITEMS', LookUp('CP-ITEMS', ID = ID,
{
itemName: tiEditRequestsItemName.Text,
itemDesc: tiEditRequestsItemDesc.Text,
LUvendorName: {Id: LookUp('CP-VENDORS', vendorName = cbbEditRequestsItemVendor.Selected.vendorName).ID,
Value: cbbEditRequestsItemVendor.Selected.vendorName},
qty: Value(tiEditRequestQty.Text),
LUuom: {Id:LookUp('CP-UOM', unitOfMeasure = cbbEditRequestsItemUom.Selected.vendorName).ID,
Value: cbbEditRequestsItemUom.Selected.vendorName},
pricePerUom: Value(tiEditRequestPricePer.Text),
itemUrl: tiEditRequestItemUrl.Text,
itemNotes: tiEditRequestsItemNotes.Text,
itemNetAmount: Value(lblCPREditItemAmount.Text)
}
)
)
);