Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Where and how to write code for new customizations on sales order created through SalesSalesOrderService?

Posted on by 115

Hi all, 

         I have done some customizations on sales order customer charges. We know that customer charges come from Auto Charges form screen on the basis of customer and line charges come on the basis of item selected on the same Auto Charges screen. I have done some customization that when we create a sales order with a customer, the charges transaction form on the sales order header should only show markup codes if the division field on the sales order matches the division on auto charges screen. The same has been applied for sales order lines as well. 

Now, as a new task, I want to implement the same check when a sales order is created through AIF. We are using SalesSalesOrderService for creating EDI sales order. 

I am not familiar with the services, can you please show me the place where I can write my code that would implement the same check mentioned above. 

  • 00030000036294D5 Profile Picture
    00030000036294D5 115 on at
    RE: Where and how to write code for new customizations on sales order created through SalesSalesOrderService?

    Can you please confirm if postSalesOrderCreation() method on AxdSalesOrder class is the suitable place for this ?

  • 00030000036294D5 Profile Picture
    00030000036294D5 115 on at
    RE: Where and how to write code for new customizations on sales order created through SalesSalesOrderService?

    I am waiting for a reply from seniors about my problem. I need to write code, can you please show me the place where I should write my code.

    If you want anything from my side, please ask.

  • 00030000036294D5 Profile Picture
    00030000036294D5 115 on at
    RE: Where and how to write code for new customizations on sales order created through SalesSalesOrderService?

    I think we have following classes where we can write code but I don't know which is the right place for me.

    We have axd document class named AxdSalesOrder.

    we have tables classes named AxSalesTable and AxMarkupTrans.

    we have child data object classes like SalesSalesOrder_SalesTable and SalesSalesOrder_MarkupTransHeader.

    then we have document root class SalesSalesOrder.

    Can somebody help me finding the right place where I can write my code in order to implement above logic. It would great help of you can show me how to write code in these service classes.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans