Hi,
Have been battling with an issue with an override to ReleaseFromHold in POOrder Entry.
What I am needing to do is make an API call on another Acumatica Instance to create a Sales order that is linked to the Purchase Order
Code is below:

The method ReleaseIntercompany is not the problem. I have the same issue even if the call is commented out such that the code becomes:

I have narrowed this down to the presence of the Base.Save.Press(). This is required because if ReleaseFromHold is pressed before the order is saved, then the OrderNbr of the PO is not known and I want to send this in the API to create the Sales Order in the other tenant to store the value in a custom field.
What happens, when the PO is released with the code above is that the user is left with a form that looks like:

All the fields in the header are blank. The order has saved, and has been released as you can exit and go back in and all the data is there.
I’m thinking that I could just right a custom action that calls the ReleaseFromHold action and then performs the call to ReleaseInterCompany, but there must be a batter way?
Thanks in advance for any assistance.
JOhn.

