Hi@yjamous,
Do you mean that you update the SP list without a form?
Of course, you could put Notify() function with the Patch() together. You could use the Errors() function to check if there is an error occurring.
You could check the Errors() function here.
I have a test on my side, please take a try as below.
Set the OnSelect property of the Patch Button as below:
Patch(
'FPC-Purchase Orders',
Defaults('FPC-Purchase Orders'),
{
Title: DataCardValue9.Text,
School: ComboBox1.Selected.Result
}
); // Put your Patch formyla here.
If(
IsEmpty(Errors('FPC-Purchase Orders')),
Notify(
"Success!",
NotificationType.Success
),
Notify(
First(Errors('FPC-Purchase Orders')).Message,
NotificationType.Error
)
)
In addition, if you want to check if the currently patched record succeeds, you could use a variable.
Set the OnSelect property of the Patch Button as below:
Set(
PatchedRecord,
Patch(
'FPC-Purchase Orders',
Defaults('FPC-Purchase Orders'),
{
Title: DataCardValue9.Text,
School: ComboBox1.Selected.Result
}
)
);// Put your Patch formyla here.
If(
IsBlank(PatchedRecord),
Notify(
"Success!",
NotificationType.Success
),
Notify(
"Fail!",
NotificationType.Error
)
)
Best Regards,
Qi