I currently have a submit button that uses the forAll() function to parse through a gallery and patch a new, or existing, record. Without having a surefire way to reference each cells "ThisItem" variable I'm using a lookup with multiple conditions to ensure that the patch is going to the correct record. I'm running into an issue when trying to compare a lookup column value to a cells label text. Here's the following code:
ForAll(
main_gallery.AllItems,
Patch(
'My Table',
LookUp(
'My Table',
Customer.'Customer Name' = customerName &&
'Date Audited' >= startThisMonth && 'Date Audited' <= endThisMonth &&
Product.'Product Name' = cell_product_label.Text
),
{
Customer: LookUp('SAM Customers', 'Customer Name' = customerName),
Product: LookUp('SAM Products', 'Product Name' = cell_product_label_MA.Text)
}
)
);
I'm getting delegation warnings on line 9 and 13. Is there some way to avoid these?