Tuesday, June 4, 2013

AIF, execute business logic when all the records in XML are inserted.

While working with Dynamics AX 2012 AIF services. Sometimes, you need to perform some operation once all the records in the XML file are inserted in the table.

For example, let's say you call Sales order service to create 10 Sales order and passed one xml file having 10 sales orders and then you need to perform some operation like posting each sales order ONLY when all the sales order are created. To achieve this, you need to override the createList() method on Axd<Table> class and then you can perform your operations in that method by iterating all the records passed in the xml file.

To see this running, please see the AxdSalesOrder class that implements such functionality.

3 comments:

  1. Everything is very open with a very clear clarification of the issues.
    It was truly informative. Your website is very helpful.
    Thank you for sharing!

    my web blog: fifa 14 crack sc

    ReplyDelete
  2. Muѕcle bսilԁing should not depend on useless supplements.

    The final pҺase once you reach the start positіon gives yοu an option of eitҺer
    going straight back into the next rep, maintaining the
    position for a set period. Insulin is resρonsible for putting nutrients іnto cells.


    Ϝeel free tо viѕit my page :: Ben Pakulski Mi40 Workout

    ReplyDelete
  3. released materials and unsubscribing or opting out.

    e-mail may be having. You should avert look too intrusive.
    patch figuring out which set to flush your protection unit are both pros and cons, and it faculty penalization with darker colours.
    in front buying a rootage review is exhaustive Louis Vuitton Outlet Online Louis Vuitton Outlet Online Louis Vuitton Outlet Stores Louis Vuitton Outlet Stores gemstones.
    nearly gemstones are indigenous to. This determine take into
    account you to put composition on can be intractable, specially when seated in deceiver of the way upland to the
    true put off. Be equipt to go forth their pane in the hips, rump and bet.
    tell them in tights! Yes, pantyhose!

    ReplyDelete