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 :
Small and medium business | Business Central, N...
Answered

how we can add additional text from blanket sales order to sales order ?

(0) ShareShare
ReportReport
Posted on by

I have added action on blanket sales order and sales order , from sales quote to sales order its working fine but from blanket sales order to sales order  additional text is not  carried .any idea !!! is there any event for that ?

pastedimage1663440847044v1.png

in case of sales quote to sales order this event is working .

any idea?

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    Pls call Blanket Order event when it converts into Sales order.

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Community Member Profile Picture
    on at

     pastedimage1663448702574v1.png

    yes I tried with it but no any result.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    I think you should share your code for your Texteditor function as well. The problem is most likely in that code.

  • Community Member Profile Picture
    on at

    pastedimage1663512904436v1.png

    this is my text editor function

  • Community Member Profile Picture
    on at

    please see below code thanks NorthW 

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    It looks like you are passing the incorrect references where you call your text editor function.

    It seems to me like you should pass SalesHeader.no and SalesOrderHeader.no but you pass the salesHeader no. twice when you handle the blanket orders.

    Please review that code.

    pastedimage1663448702574v1.png

  • Community Member Profile Picture
    on at

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Blanket Sales Order to Order", 'OnBeforeInsertSalesOrderHeader', '', true, true)]

       local procedure "Blanket Sales Order to Order_OnBeforeInsertSalesOrderHeader"(var BlanketOrderSalesHeader: Record "Sales Header"; var SalesOrderHeader: Record "Sales Header")

       var

           TextEditorFunctionsL: Codeunit TextEditorFunctions;

       begin

           TextEditorFunctionsL.TransferAddSalesTextToPostedDocument(BlanketOrderSalesHeader."No.", BlanketOrderSalesHeader."Document Type", SalesOrderHeader."No.", SalesTextsDocumentType::Auftrag);

       end;

    Thanks for the reply

    NorthW , I tried with still iam not getting as expected can you please guide me

  • Verified answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Can you try to share the complete code so i do not have to rewrite it?

    You can either go to rich formatting and insert code or send me a message me a private message if you do not want to share the code in public here. Maybe you have it in github or something.

  • Community Member Profile Picture
    on at

    The event i subscribed was wrong 

     [EventSubscriber(ObjectType::Codeunit, Codeunit::"Blanket Sales Order to Order", 'OnAfterInsertAllSalesOrderLines', '', true, true)]
        local procedure "Blanket Sales Order to Order_OnAfterInsertAllSalesOrderLines"(var BlanketOrderSalesHeader: Record "Sales Header"; var OrderSalesHeader: Record "Sales Header")
        var
            TextEditorFunctionsL: Codeunit TextEditorFunctions;
        begin
            TextEditorFunctionsL.TransferAddSalesTextToPostedDocument(BlanketOrderSalesHeader."No.", BlanketOrderSalesHeader."Document Type", OrderSalesHeader."No.", SalesTextsDocumentType::Auftrag);
        end;
    This is the correct event for that may be in future it may help some one.Thanks NorthW  for the guidlines

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 570 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 291 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans