I've added some custom fields to link a Kit Asm back to a particular Sales Order Line. When the Kit Asm is released, I want to update my custom field Qty Released on the linked SO Line.
My code is working for other changes to the Kit Asm (which I kick off from an overridden Persist method), but the base Acumatica Release takes place inside a PXLongOperation, so my count of the qty on Kit Asms that are released is inaccurate, because they aren't actually released immediately after the base.release.Press().
Also due to the PXLongOperation, the event handler for Kit Asm Released field updated is never raised, so I can't capture it from there.
And the Persist doesn't seem to get raised at any point after the Release is completed.
Is there a way I can track the progress of the base Release and wait until the PXLongOperation completes before trying to update my SO?