Posts

Showing posts from October, 2017

Create New customer address and update customer address using x++ code

How to update customer address using Code static   void  updateCustomerAddress(Args _args) {     LogisticsPostalAddress      address;     CustTable                   custtable;     DirPartyPostalAddressView   postaladdressView;     DirParty                    dirparty;     LogisticsLocation           location;     DirPartyTable               dirPartyTable;          while   select  custtable  where  custtable.AccountNum  == "100"        ...

Data Bases in Ax 2012 R3

Image
Data Bases in Ax There are three database components:  Transaction DataBase Model Store BaseLine Model Store The Application Object Server (AOS) connects to the Microsoft Dynamics AX database to process transactions.  The AOS connects to the model store to display forms and reports.  The baseline model store is used to upgrade X++ code to Microsoft Dynamics AX 2012, and to analyze application updates before they are applied. In Microsoft Dynamics AX 2012 R3 and Microsoft Dynamics AX 2012 R2, the model store and the transaction data are stored in separate databases.  In earlier versions of Microsoft Dynamics AX 2012, the model store and transaction data are stored in a single database.

How to refresh AX WSDL configuration from a command prompt

Image
My build/release process is almost entirely automated, except for one step, where we refresh the WSDL/WCF configuration.  So far, I've only been able to do it conventionally with the mouse. I wrote a little command line tool in C# that you can incorporate into your build scripts that should refresh your WCF configuration in your AXC file automatically. It has one dependency on the AX client configuration tool obviously, which is located at: C:\Program Files\Microsoft Dynamics AX\60\BusinessConnector\Bin\AxCliCfg.exe Usage: RefreshAXCConfig.exe <axc file> <aos name> <WSDL Port> Example: RefreshAXCConfig.exe C:\CUS.axc DevAOS 8101 The C# code is simple below, and make sure to add the reference to AxCliCfg.exe.  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Xml; using Microsoft.Dynamics.Configuration; namespace R...