I have created a custom Trade agreement journal workflow with an Automated task that will post the Trade agreement journal once it has been approved.
I was hoping to simply call the posting class, PriceDiscAdmCheckPost, through the main method with my own custom Args object.
However, I've noticed that it calls the 'prompt()' method which it gets from extending 'RunBaseBatch'.
Because workflow is not a UI side call, it is not happy with that 'prompt()' call and errors out.
Are there any tools at our disposal, as x++ developers, to avoid that 'prompt()' call?
My goal here was to use the standard code for the posting.