Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans