Translate

Saturday, July 5, 2014

Customer Payment Journal using C#



1.       Verify WSDL URI for AccountsReceivableServices under System administration > Setup > Service and Application Integration Framework > Inbound Ports



2.       Add service reference in .Net project.



3.       Add the below code to create customer payment journal.

private void button1_Click(object sender, EventArgs e)
        {
              //Service declarations
            AccountReceivableServices.CallContext callContext = new AccountReceivableServices.CallContext();
            AccountReceivableServices.CustPaymJournalServiceClient client = new AccountReceivableServices.CustPaymJournalServiceClient();
            AccountReceivableServices.AxdCustPaymJournal paymJournal = new AccountReceivableServices.AxdCustPaymJournal();
            AccountReceivableServices.AxdEntity_LedgerJournalTable1 header = new AccountReceivableServices.AxdEntity_LedgerJournalTable1();
            AccountReceivableServices.AxdEntity_LedgerJournalTrans1 trans = new AccountReceivableServices.AxdEntity_LedgerJournalTrans1();

            callContext.Company = "ceu";
            
              //LedgerJournalTable
            header.JournalName = "Pay";
            header.Name = "AIF test";
            header.JournalType = AccountReceivableServices.AxdEnum_LedgerJournalType.CustPayment;
           
              //LedgerJournalTrans
            trans.AccountType = AccountReceivableServices.AxdEnum_LedgerJournalACType.Cust;
            trans.AccountTypeSpecified = true;
            trans.Company = "ceu";
            var account1 = new AccountReceivableServices.AxdType_MultiTypeAccount() { Account = "11101", DisplayValue = "11101" };
            trans.LedgerDimension = account1;
            trans.AmountCurCredit = 22;
            trans.AmountCurCreditSpecified = true;
            trans.OffsetCompany = "ceu";
            trans.PaymMode = "cash";
            header.LedgerJournalTrans = new AccountReceivableServices.AxdEntity_LedgerJournalTrans1[1] { trans };
            paymJournal.LedgerJournalTable = new AccountReceivableServices.AxdEntity_LedgerJournalTable1 [1] { header };
            try
            {
                client.create(callContext, paymJournal);
            }
            catch (Exception ex)
            {
                string error = ex.Message;
            }

Thursday, March 20, 2014

Developing SSRS Reports for Dynamics AX

300+ copies already sold... Rush now and get one for yourself..!!

***** DEVELOPING SSRS REPORTS FOR DYNAMICS AX *****

Order your copy from:

Amazon.com - http://goo.gl/K94qjr
Amazon.in - http://goo.gl/dMsxnX
Google Books - http://goo.gl/9z0ZTR
Packt Publishing - http://goo.gl/79sUjJ                                                  

Thursday, January 9, 2014

Open Management Reporter from AX 2012 R2

Microsoft Dynamics AX 2012 R2 gives the ability to open Management Reporter directly from AX with various advantages:

  • Easier than ever.
  • Launch Management Reporter direct from Microsoft Dynamics AX 2012 R2.
  • New Management Reporter menu items available under General ledger & Budgeting reports section.
  • Users with permission to Design & Generate reports in MR will be able to see menu item inside AX.
  • Open Report Designer with a click.
  • Connects to the correct server & company based on the AX active session.