Hello everyone,
I have a problem with a patch / update function.
I would like to use a patch function to check whether a value is present in a dataverse table.
If so, the value will be updated, if not, create a new entry.
The information that should go in there comes from a gallery
I have the following patch function:
ForAll(Gallery2.AllItems;
Patch(tbl_listes;
Coalesce(LookUp(tbl_listes;
{
GUID:lb_SCHGUID.Text;
Surname:lb_SCHSurname.Text;
Name lb_SCHnameText;
Class:lb_SCHclass.Text
} Defaults(tbl_listes);
));;
My data records are transferred to the CDS,
but it is not checked whether they already exist.
I would like to filter by GUID, if present then update record,
if GUID does not exist then recreate record