I have a gallery of with input fields that I patch into the database. Is there a way to validate the patch has been successful or not?
ForAll('Gallery1'.AllItems,
Patch('Sharepoint List', {
Title : 'Combobox_1'.Selected.Code,
'Delivery Note' : 'TextInput_1'.Text,
}
);
); I have tried to make use of Errors function, made a field required in the list, and tried patching an empty data into it, but it returned Patch successful.
ForAll('Gallery1'.AllItems,
Patch('Sharepoint List', {
Title : 'Combobox_1'.Selected.Code,
'Delivery Note' : 'TextInput_1'.Text,
}
);
);
If(
IsEmpty(
Errors('Sharepoint List')
),
Notify("Patch Successful",NotificationType.Success),
Notify("There is an error with your Patch function",NotificationType.Error)
);