Po Submit and approve workflow through code
After the request change on Po confirm button is grey out and its not allow to confirm below job helps to complete this VersioningPurchaseOrder versioningPurchaseOrder ; versioningPurchaseOrder = VersioningPurchaseOrder :: newPurchaseOrder ( purchTable , true ); Change the status in draft versioningPurchaseOrder . createChangeRequest (); .. purchtable . update (); .. purchLine . update (); .. this is used to submit and approved it versioningPurchaseOrder . submitChangeRequest (); versioningPurchaseOrder . approveChangeRequest ();