Skip to content
Dynamics 365 Blog
Becky Newell avatar

Becky Newell

Posts

In AX 2012 some system services were added to perform generic functions like retrieving security or AOT node information.  To me the most interesting system service is the Query service.  This service allows you to perform a query against whatever tables you want from a service call.  On the call you can specify a field list, range, sort, etc.  The...

Read more

We’ve recently created several resource pages for different AX topics like SSRS integrations, Invoice settlements, discounts and reversals, Enterprise Portal, and Workflow.  The resource pages are a place where you can find lots of information on the particular topic the page covers.  If these sound interesting to you have a look here: http://community.dynamics.com/product/ax/axtechnical/b/axresources/default.aspx...

Read more

The code is an example of how to call the update method on  sales order in AX 2012 using the SalesOrderService.   static void Main(string[] args)         {             //First find the order             AxdSalesOrder salesOrder = Program.FindOrder();             //Now update it             Program.UpdateOrder(salesOrder);         }           static AxdSalesOrder FindOrder()         {             CallContext context =...

Read more

I received a question on how to call this service.  The code below creates an inventory transfer journal for me in the demo data: TransferJournalServiceClient client = new TransferJournalServiceClient(); CallContext context = new CallContext();            context.Company = “ceu”;   AxdTransferJournal journal = new AxdTransferJournal(); AxdEntity_InventJournalTable journalHeader = new AxdEntity_InventJournalTable(); journalHeader.JournalNameId = “ITrf”;   AxdEntity_InventJournalTrans inventJournalTrans =...

Read more

Due to popular demand, below is example code that creates a general journal in 2012 using X++ code:    AxLedgerJournalTable header = new AxLedgerJournalTable(); AxLedgerJournalTrans trans = new AxLedgerJournalTrans(); container  ledgerDimensions, offsetDimensions;    header.parmJournalName(“GenJrn”);   header.save();      trans.parmAccountType(LedgerJournalACType::Ledger);   trans.parmJournalNum(header.ledgerJournalTable().JournalNum);   ledgerDimensions = [“131100-USA”,”131100″, 1, “COUNTRY”,”USA”];   trans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(ledgerDimensions));   trans.parmAmountCurDebit(230);   offsetDimensions = [“0103-USA”,”0103″, 1, “COUNTRY”, “USA”];   trans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId(offsetDimensions));   trans.save();...

Read more

I had a blog comment requesting that I demonstrate how to call the LedgerPurchaseInvoice service so here you go:               //A purchase invoice created by this service = AP > Journals > Invoices > Invoice register             //Think it depends on which journal name you set up under AP > Setup > AP Parameters...

Read more

Below is an example of how to call the create operation on the GeneralJournalService in AX 2012.  My apologies for the way the code below is formatted!  This editor is clearly not made for code snippets. GeneralJournalServiceClient client = new GeneralJournalServiceClient(); CallContext context = new CallContext(); context.Company =  “ceu”;   AxdLedgerGeneralJournal journal = new AxdLedgerGeneralJournal();...

Read more

I’ve been asked several times what a Full or Incremental ILCompile is in AX 2012.  If you have that same question here is somebackground information.  IL stands for Intermediate Language it is shortfor CIL – Common Intermediate Language.  When you write code in VisualStudio (VS) you can write in many different languages, Visual Basic, C#,...

Read more

We have had questions recently regarding the two voucherposting strategy for purchase distributions.  You may be seeing additionalpurchase order posting distributions as well as entries for the PO postingtypes Purchase expenditure, un-invoice and Purchase expenditure forproduct receipt.   Microsoft Dynamics AX 2012 introduces the ability to havenon-stocked purchases.  In order to allow for non-stocked purchases...

Read more

In Connector it is possible to pick up updates to synchronized entries.  This is the scenario…  In AX you enter a sales order with one line and the sales order is synchronized to CRM by the Connector.  In AX if you change the quantity on the sales line or add a second line to the sales order how do...

Read more

In AX 2012 there are a couple of different ways you can programmatically create combinations of dimensions.  These combinations are saved as records in the DimensionAttributeValueCombination table.  The RecId from the DimensionAttributeValueCombination table is what is saved in the LedgerDimension field on the LedgerJournalTrans table. The first and best way to create dimension combinations is to use the class and method...

Read more

CRM Connector for AX is a tool that lets you synchronize data between AX and CRM environments.  For example, you can move customers or contacts from AX to CRM and vice versa.  Connector uses the web services from AX and CRM to move the data around.  Depending on the error you are getting there are different...

Read more