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

Notifications

Announcements

No record found.

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
    301,075 Super User 2025 Season 2 on at

    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

    Hi Magdy Mansour,

    Please check initFromSalesQuotationTable() method on SalesTable table.

  • Community Member Profile Picture
    on at

    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
    301,075 Super User 2025 Season 2 on at

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

  • Community Member Profile Picture
    on at

    Hi ievgen Miroshnikov

    this method is working with me , thank you

  • rajeev tiwari Profile Picture
    434 on at

    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

    because it should be

    next initFromSalesQuotationLine(_salesQuotationLine);

  • rajeev tiwari Profile Picture
    434 on at

    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

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

  • rajeev tiwari Profile Picture
    434 on at

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans