Brendan Goodenough Brendan Goodenough - 1 year ago 153
PHP Question

Using PHP to Update Dynamics AX 2012 Workflow

I am currently attempting to set up a PHP script to communicate with Dynamics AX 2012 and update a workflow (i.e. approve and reject), and after reading this post I believe it can be achieved using the business connector - however I also read a lot of articles advising not to use the Business Connector with AX 2012 and so I would like to avoid doing so if possible.

My question is: How can I use PHP (or any other language I can call through PHP) to communicate with AX 2012 to approve/reject or otherwise update existing workflows without using the business connector?

Thanks in advance.

Answer Source

You should use AIF (Application Integration Framework).

Then you can call AX AIF services via SOAP (Web Services). Use HTTP adapter instead of default NetTcp (or configure it to use BasicHttp).

See for the instructions of configuring HTTP Adapter.

For workflow actions AIF service is already created (\Services\SysWorkflowApprovalService).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download