I have code that I want to run after a long running operation completes, if a method in the long running operation returns ‘true’, to show a simple error message popup.
PXLongOperation.WaitCompletion(key);
PXLongOperation.WaitCompletion(key); seems to be what I need, but I can’t figure out what to use for the key. When I use ‘this’ as shown in the screenshow, it doesn’t find the long running operation and proceeds to skip over the error message code since the variable value will be null.
What am I doing wrong here?