I can create a record in the DataVerse table fine no issues there, but am struggling to update that same record.
Am also looking for the code to update all records but create new record if the record in the collection is not in the dataverse table.
I have been messing around with lots of code, but just cant get it to work for updating.
Create Record Code:
ForAll(
Collection,
Patch(
'DateVerseTable',
Defaults('DataVerseTable'),
{CollectionID: ThisRecord.CollectionID,
'Damaged': ThisRecord.'Damaged'
}
))
Edit Record Code:
ForAll(
Collection,
Patch(
LookUp(
'DataVerseTable',
CollectionID = ThisRecord.CollectionID
),
{'Damaged': ThisRecord.'Damaged'}
)
)
Edit Record code runs with no errors, but the table is not updated.
Cant understand why it doesn't update.
any idea help guidance would be appreciated.