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...
Suggested Answer

Modifying email subject & body for Sales Order Confirmation Email

(4) ShareShare
ReportReport
Posted on by 284
Hello, is it possible to modify the email subject line and body text, including adding custom fields (for example, replacing the Due Date with another date field) to the Sales Order Confirmation Email?
 
Any help and code samples will be greatly appreciated. Thank you.
 
 
I have the same question (0)
  • Suggested answer
    Teagen Boll Profile Picture
    1,837 Super User 2026 Season 1 on at
    Modifying the body of the email is quite easy. If you search for Report Selection - Sales and select Customer Statement under Usage you can see the email body layout being used:
     
    I would take that existing one that matches that Email Body Layout name above:
    Click on the 3 dots in the ribbon and Export Layout:
     
    You can then make changes to that word layout and when you are done making changes you can select the 3 dots above and "Replace Layout" instead.
     
    Business Central word layouts use XML mapping so if you need to add new fields or modify them you can work with a partner or learn more here: How to Add Fields to a Word Report Layout - Business Central | Microsoft Learn
     
    As for the subject line, in my experience that is a customization and not easily changeable with standard functionality.
     
    Best,
    Teagen Boll
    Social: LinkedIn
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    3,029 on at
    Hii there ,
    as per requirement for this you need to update report layout for this with custom layout. As per @Teagen Boll suggest you export layout and then update layout according to your needs and upload layout. And make it default layout for this .
     
    If you found answer. Please mark it answered.
     
    Thank you. 
    Kamal Khakhkhar 
  • Suggested answer
    YUN ZHU Profile Picture
    99,697 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints as well.
    How to change default subject of the email when sending mail in Dynamics 365 Business Central – Customization
    Dynamics 365 Business Central: How to add a user signature when sending mail from BC (E-mail Signature)
     
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    26,019 Most Valuable Professional on at
  • Suggested answer
    OussamaSabbouh Profile Picture
    14,008 Super User 2026 Season 1 on at
    Hello,
    Yes the email body is configurable with standard setup by assigning a custom Word Email Body Layout in Report Selections - Sales, so you can change the text and swap fields like Due Date for another field; the subject can be edited manually in the email editor, but if you want its default value changed automatically, that usually needs a small AL customization/event subscriber rather than layout setup alone.

    Regards,
    Oussama Sabbouh
  • Suggested answer
    Aman Kakkar Profile Picture
    3,180 Super User 2026 Season 1 on at
    Hi,
     
     
    If you want to replace the Due Date with any date field which is already present in the dataset of standard report, then you can change the Date field directly from layout.
     
    But if you want to add any custom date field, or any column that is NOT present in the dataset, then you need to follow the below mentioned steps - 
    1. Extend the Order Confirmation Report in your VS Code extension.
    2. In the same extension, download and store the Standard Layout by exporting it from the Report Layouts Page.
    3. Add the column in the Header and compile it (Ctrl + Shift + B) to create the package.
    4. Now, open the layout and add the field you just added via extending it.
    5. NOTE - After publishing, mark this report layout as Default so that your custom layout shows up in the Email.
     
    reportextension 50106 SalesOrderExt extends "Standard Sales - Order Conf."
    {
        RDLCLayout = 'SalesOrderConf.rdl';
        dataset
        {
            add(Header)
            {
                column(Posting_Date; "Posting Date")
                {
    
                }
            }
        }
    }
     
    If this helps, do mark it as verified.
    Aman K
  • Suggested answer
    Valentin Castravet Profile Picture
    32,390 Super User 2026 Season 1 on at
    As mentioned by other users, modifying the email body can be done using standard functionality by modifying the report layout used.
    When modifying the layout, you can check whether the Due Date is one of the available fields in the report. If it is not, it should be fairly simple for a developer to add.
     
    Modifying the email subject is not possible with standard functionality, but it is a very simple change for a developer to make.
     

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,948 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,048 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 727 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans