Dear Community,
I have a challenge when using PostSave event functions: I cannot prevent save when some conditions are met.
As stated on the MS site, when the form OnPostSave event occurs, you can use the getEventArgs method of the execution context object to retrieve an object that contains methods you can use to manage the postsave event and those are: getEntityReference, getIsSaveSuccess and getSaveErrorInfo.
It means that even if we enable Async on Save in power app settings, we won't be able to benefit from executionContext.getEventArgs().preventDefault() and executionContext.getEventArgs().disableAsyncTimeout methods.
Do you have any suggestion how to prevent save on PostSave event functions?
Regards,
Milos