I am very new to dynamics AX. I have deployed dynamics ax 2012 r3 as given in this link (https://ax.help.dynamics.com/en/wiki/deploy-an-ax-2012-r3-or-ax-2012-r3-cu8-demo-environment-on-azure/). I am able to connect to it from the same machine where dynamics ax instance exists. i used following code
Microsoft.Dynamics.BusinessConnectorNet.Axapta DynAx = new
Microsoft.Dynamics.BusinessConnectorNet.Axapta();
Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord DynRec;
try
{
// Authenticate the user and establish a session.
DynAx.Logon(null, null, null, null);
// Define the record as the CustTrans table.
DynRec = DynAx.CreateAxaptaRecord("CustTrans");
// Define the query that will run on the CustTrans records.
// This will return all the data in the CustTrans table with
// the cursor positioned at the first record in the table.
DynRec.ExecuteStmt("select * from %1");
// Check if the query returned any data.
if (DynRec.Found)
{
// Display the record on the form that was retrieved from the query.
textBox1.Text = (string)DynRec.get_Field("AccountNum");
}
}
But how can i connect to this dynamics instance from other machine? (where this instance is not installed). I want to pull data from this dynamics ax instance.
*This post is locked for comments
I have the same question (0)