Skip to main content

Posts

Link to Preview the Upcoming Warehousing and Transportation Capabilities for Microsoft Dynamics AX2012 at AXUG Summit 2013

Preview the Upcoming Warehousing & Transportation Capabilities for Microsoft Dynamics AX2012 at AXUG Summit 2013 Note that these upcoming capabilities will be release in AX 2012 R3 which is expected to be released at the end of this year. Preview the Upcoming Warehousing & Transportation Capabilities for Microsoft Dynamics AX2012 at AXUG Summit 2013

Code to args class implementation in Ax 2012

Write code in button click void clicked() { Args args = new Args(); ; args.caller(this); args.parm("Hi"); args.parmEnumType(Enumnum(Test)); args.parmEnum(Test::T); args.record(calling); new MenuFunction(MenuItemDisplayStr(CallerMI),MenuItemType::Display).run(Args); } Code Written in Init of Caller Object public void init() { Calling calling; ; super(); info(element.args().parm()); info(element.args().parmEnum()); calling = element.args().record(); info(Calling.Name); }

Find or Update customer primary Address in Ax 2012

To Find or Update customer primary Address in Ax 2012 you can try following code. Relation between dirpartytable and custtable slightly changed in Ax 2012 so you need to re-learn about this. LogisticsPostalAddress address; custtable = Custtable::find("C00001"); address.Street = "abc"; address.ZipCode = "280003"; address.City = "Mumbai"; addressView.Party = CustTable.Party; addressview.initFromPostalAddress(address); DirParty = DirParty::constructFromPartyRecId(CustTable.Party); roles = [LogisticsLocationRole::findBytype(LogisticsLocationRoleType::Delivery).RecId]; DirParty.createOrUpdatePostalAddress(addressView,roles) Note: createOrUpdatePostalAddress method is useful for both creating or updating the customer address. if you are providing the existing dirpartyid then it will update the customer address ,in case of new dirpartyid it will create a new address.

How to Get Dimension value by code in ax 2012

MSDN Help for Dimension attribute value. http://msdn.microsoft.com/en-us/library/dimensionattributevalue.aspx Default dimension storage in ax 2012 http://blogs.bojensen.eu/?p=4671 Getting Individual Dimension Combination Values–Dimension Storage class  in Ax 2012 http://sumitsaxfactor.wordpress.com/2011/12/16/getting-individual-dimension-combination-valuesdimension-storage-class-ax-2012/

Question and answer on firewall and other application integration in ax 2012

Question :What port would you need to open on the firewall for the Application Object Server (AOS) function in Microsoft Dynamics AX 2012? Answer:You would need to open TCP Port 2712. Question:If The company runs a Microsoft Dynamics AX 2012 system.You plan integrate other applications with the Microsoft Dynamics AX 2012 system.What type of account should you use? Answer:You should use a .NET Business Connector Proxy account.