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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Confirm Quotation to be sales order

(0) ShareShare
ReportReport
Posted on by

we add a custom field to the sales quotation and to sales order so we need when we confirm the sales quotation to a sales order we need this vale in the custom fileld to transfere to the sales order custom field

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,327 Super User 2025 Season 2 on at
    RE: Confirm Quotation to be sales order

    Hi Magdy,

    You haven't mentioned if the field is on header or line level.

    Anyway: the SalesTable has the method initFromSalesQuotation() which can be extended with an event handler. The SalesLine table has the method initFromSalesQuotationLine() which can also be extended to handle new fields.

  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: Confirm Quotation to be sales order

    Hi Magdy Mansour,

    Please check initFromSalesQuotationTable() method on SalesTable table.

  • Community Member Profile Picture
    on at
    RE: Confirm Quotation to be sales order

    it is in the header and line levels

    it is an additional margin which which we add to the unit price to calculate  the Net amount so we use it in the header (to apply on all sales lines ) and we can modified on the line level so when the confirm the sales quotation to sales order we need to transfer these data to the sales order

  • André Arnaud de Calavon Profile Picture
    299,327 Super User 2025 Season 2 on at
    RE: Confirm Quotation to be sales order

    Thanks for the feedback. Could you do something with extending the above mentioned methods?

  • Community Member Profile Picture
    on at
    RE: Confirm Quotation to be sales order

    Hi ievgen Miroshnikov

    this method is working with me , thank you

  • rajeev tiwari Profile Picture
    432 on at
    RE: Confirm Quotation to be sales order

    Hi Magday can you help me , i am also in the need to flow one field from salesquotation to sales line , I tried by giving error one next command required

    [ExtensionOf(tablestr(SalesLine))]
    final class SalesLine_Extension
    {
    public void initFromSalesQuotationLine(SalesQuotationLine _salesQuotationLine)
    {
    SalesLine SalesLine;
    SalesLine.God_AllowedDiscount=_salesQuotationLine.AllowedDiscount;
    next initFromSalesQuotationLine(SalesQuotationLine _salesQuotationLine));
    }

  • Mea_ Profile Picture
    60,284 on at
    RE: Confirm Quotation to be sales order

    because it should be

    next initFromSalesQuotationLine(_salesQuotationLine);

  • rajeev tiwari Profile Picture
    432 on at
    RE: Confirm Quotation to be sales order

    Hi Ievgen,

    This method initFromSalesQuotationLine is in salesline table and when we click on confirm button of sales quotation, it creates sales order header and line..because field is custom field i have to flow from sales Quotation line to sales line but below code is not working..please help

    ExtensionOf(tablestr(SalesLine))]

    final class SalesLine_Extension

    {

    public void initFromSalesQuotationLine(SalesQuotationLine _salesQuotationLine)

    {

    SalesLine SalesLine;

    SalesLine.God_AllowedDiscount=_salesQuotationLine.AllowedDiscount;

    next initFromSalesQuotationLine(_salesQuotationLine));

    }

  • Mea_ Profile Picture
    60,284 on at
    RE: Confirm Quotation to be sales order

    Sorry, but what kind of help do you need?  We helped you to fix compile error, so did it help?

  • rajeev tiwari Profile Picture
    432 on at
    RE: Confirm Quotation to be sales order

    Means data is not flowing with this code

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans