Hi everyone, I have an issue with a patch on the order line. I'm trying to insert a row into the entity but I'm getting an error during the patch function. The problem lies in the 'existing product' field (because if I remove it, the patch works fine). What I don't understand is that it expects a field of record type and, by conducting tests, the record is indeed correct. Could you help me?
ForAll(catalogoTemp, Patch('Order Lines',Defaults('Order Lines'), {
// 'Product Name':catalogoTemp[@Product].Name,
Order:ordineCreato,
Quantity:0,
'Select Product':'Select Product (Order Lines)'.Existing,
'Existing Product':catalogoTemp[@Product],
'Property Configuration':'Properties Configuration'.Edit,
Name:catalogoTemp[@Product].Name,
'Product type':'Product Type'.Product
}));