I am trying to Update a row in the dataverse using the Patch command but it is adding a new row instead. I have created a key column in both tables to Lookup on. Despite there being a match, it is creating a new row.
Here is the syntax I am trying to use:
ForAll(
//"SIPGridData10" is a collection I want to patch to the table (SIP_Sales Summary Calculationss) in the dataverse
SIPGridData10,
Patch(
'SIP_Sales Summary Calculationss',
LookUp('SIP_Sales Summary Calculationss',
// 'Summary Table Key' is the column ID in both the collection and the dataverse table
'Summary Table Key'= ThisRecord.'Summary Table Key),
{
// These are the records I want to patch to the dataverse table (SIP_Sales Summary Calculationss)
'Summary Table Key': ThisRecord.'Summary Table Key',
Area_Test: Text(ThisRecord.Areap),
Prodhlvl3: Text(ThisRecord.PHLvl3p),
'Annu.figs':ThisRecord.Ann_netvalue
}
)
)