Simply, check for any errors !
Below example is using a DataVerse table called Jobs, and the record being patched is held in selRequest.
With(
{
wUpdateJob: Patch(
Jobs,
LookUp(
Jobs,
Jobs = selRequest.tm_jobsid
),
{'Process Job': true}
)
},
If(
IsBlank(wUpdateJob),
Notify(
"There was an error submitting your request: " & Last(Errors(Jobs)).Message,
NotificationType.Error
)
Navigate(
'Outstanding Jobs',
ScreenTransition.None
)
)
)
1 Comment