Define document publication layouts

Document Publication  •  Article  •  3/19/2025  • 

You can define which reports must be sent from sales and purchase documents for specific customers or vendors, respectively, on the Document Publication Layouts page.

  • This page is not applicable to non-commercial documents like assembly orders, production orders, and transfer orders.
  • You can copy the reports set up on the Document Publication Report Selection page.
  • The system considers the changes made to the reports on the Document Publication Layouts page over the reports on the Document Publication Report Selection page when printing or emailing reports using the document publication functionality.

You can set up reports for a specific customer or vendor as follows:

  1. Select the Search icon , enter Document Publication Layouts, and then choose the related link.
    The Document Publication Layouts page opens.

  2. You can select the following filters on the header level.

    FilterDescription
    Output BySelect how the output of the report is used. The available options are:
    • Blank: The system prints the report when using the standard Business Central printing process.
    • Document Publication: The system prints or emails the report when using the document publication functionality.
    • Both: The system emails or prints the report when using the document publication functionality and the standard Business Central printing process.
    Source TypeSelect the source type of the documents. The available options are: 18 (Customer) and 24 (Vendor).
    Source No.Select the number of the specific customer or vendor you want to apply the reports to.
    UsageSelect the type of document the report is used for.
    Custom CategoriesSelect a custom category code.
    This filter is editable only when the Usage field value is set to Custom.
  3. On the action bar, select Copy from Report Selection to copy the reports that are set up on the Document Publication Report Selection page. For more information, see Set up document publication reports.
    Additionally, you can select a new line to set up a report for a specific customer or vendor.

  4. You can enter the required information in the following fields:

    FieldDescription
    Source No.Specifies the number of the specific customer or vendor the reports apply to.
    UsageSelect the type of document the report is used for. The available options are:
    You can select Custom if you want to use custom categories to extend the document publication functionality to pages that are not included in standard Business Central. For more information, see Set up custom categories.
    Report IDSelect the object ID of the report.
    Report NameSpecifies the name of the report.
    Output BySelect how the output of the report is used. The available options are:
    • Blank: The system prints the report when using the standard Business Central printing process.
    • Document Publication: The system prints or emails the report when using the document publication functionality.
    • Both: The system emails or prints the report when using the document publication functionality and the standard Business Central printing process.
    Output TypeSelect the output type you want the report to be sent in. The available options are: Blank, Print, and Email.
    Custom Category CodeSelect a custom category code.
    This field is editable only when the Usage field value is set to Custom.
    Use for Email BodySelect the checkbox if you want the system to insert the summarized information, for example, invoice number, due date, and payment service link, to the body of the email.
    This checkbox is editable only when the Output Type field value is set to Email.
    Use for Email AttachmentSelect the checkbox if you want the system to attach the report to the email.
    This checkbox is editable only when the Output Type field value is set to Email.
    Email OriginSelect which email address you want the system to use when sending the report via email. The available options are:
    • Blank
    • Fixed: The system uses the email address specified in the Email field.
    • Document: The system uses the email address specified in the header of the document.
    • Contact: The system uses the email address specified on the Contact Card page of the relevant customer or vendor card.
    • Organizational Level: The system uses the email address of all customers or vendors that are setup with the organizational level specified in the Organizational Level Code field.
    EmailEnter the email ID you want the system to use when sending the report via email.
    This field is editable only when the Email Origin field value is set to Fixed.
    Organizational Level CodeSelect the organizational level that the system must consider when sending emails to the associated customers or vendors.
    This field is editable only when the Email Origin field value is set to Organizational Level.
    No. of OutputEnter the number of outputs of the report you want the system to print or email.
    This field value is set to 1 by default.
    Process BySelect how the system must process the report. The available options are:
    • Blank
    • User: You can manually publish the reports from documents using the document publication functionality. For more information, see Publish reports from documents.
    • Job Queue: You can manually publish multiple reports of a document type or create batch jobs for the system to automatically publish reports when running the batch jobs. For more information, see Publish multiple reports and Schedule report publishing.
    PublishSelect the checkbox if you want the system to publish the report.
    This checkbox is selected by default when the Process By field value is selected.
    DialogSelect the checkbox if you want the system to display the report in the Document Publication dialog to review and edit it when publishing reports from documents.
    This checkbox is editable only when the Process By field value is set to User.
    Document Filter ExistsSpecifies whether a document filter is available for the report that can be used to filter the data in the report. For more information, see Apply document filters.

    The reports are set up for a specific customer or vendor.

Additionally, you can select the Document Filter action to view, edit, and apply filters to reports based on, for example, location code, sell-to customer number, and shipping method code. For more information, see Apply document filters.

You can open the Document Publication Layouts page for a specific vendor or customer from the following pages:

  • Customers and Customer pages: On the action bar, select Related > Customer > Document Publication Layouts.
  • Vendors and Vendor pages: On the action bar, select Related > Vendor > Document Publication Layouts.