web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 117

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. 

I have the same question (0)
  • 00030000036294D5 Profile Picture
    117 on at

    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.

  • 00030000036294D5 Profile Picture
    117 on at

    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
    117 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 657

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 615 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans