Hello,
With the use of AIF and Dynamics AX 2012, I have been able to successfully create customers in Dynamics AX from C# code.
I've been instantiating a AxdCustomer object, assigning the necessary properties, and using the CustomerServiceCreateClient to perform the creation.
I understand that by creating a customer in Dynamics AX this way that it will also create a DirParty Table record and 'match' it with the customer that I've created.
However, I was wondering, is there a way through the AIF to do the opposite such as instantiate and create a DirParty Table record in AX that I can then retrieve and assign to customers that I create in the future with the party number for example?
The issue that I am running into is, if I instantiate an object such as AxdEntity_DirParty_DirpartyTable - How do I get this into AX since I cannot pass this object to CustomerServiceCreateClient because it is expecting an obvious AxdCustomer object.
Lastly, do I need to expose a method from AX that I can reference and call from the C# side of things? If so, what method would I expose.
Thank you,