Running Automaton Button from code

Hi All,

Here I want to share one example of customization. We want to trigger a button that is defined as Automation action from code. The problem here is that the button is not defined in the code, so we need to trigger it the same way how UI does it.
To do this we have do several tricks:

  • Define a new custom PXView that will return record that we want to process
  • Create an adapter, that will provide data for button handler. Adapter will get data from custom PXview.
  • Create a separate instance of graph, that will handle action.

Code example with comments:

Big thanks to Acumatica support team for the provided example.
Have a nice development.

2 Replies to “Running Automaton Button from code”

  1. Good Article Sergey,

    How about to customize screen Release AP Documents (AP501000) in Acumatica ERP System, if using additional field. Passing Customize field's value from screen AP301000 and sent in to Journal Transactions screen using Release All button in screen (AP501000) ?

  2. Hi Hari,
    There was a good example, how to pass custom field from AP Doc to GL in Acumatica Customization guide and previous customization training. Could you please check it.

Leave a Reply

Your email address will not be published. Required fields are marked *