Modifying a Report Workflow

Use this general workflow as a guideline for how to add and modify and then select a custom report layout for use in Multi-Entity Management. The custom report layout is a standard Microsoft Dynamics 365 Business Central feature. For more information, see the Microsoft Dynamics 365 Business Central documentation.

Address Format

The address format that is used in the reports is also a standard Microsoft Dynamics 365 Business Central feature. To ensure that addresses on the report appear in the format that you want, do the following: 

  • On the General Ledger Setup page, set the Local Address Format option to the setting that you want. As a best practice, set this value to City+State+ZIP Code.

User Defined Fields

The custom and user-defined fields you can add are set up on the following pages:

Decimal Format

User-defined field box 8 for the decimal format appears as two columns in the reports, one is called BssiUDF8Value, and the other is called BssiUDF8ValueFormat. To ensure that the decimal is correctly formatted on the reports, follow these steps:

  1. Start the SQL Server Report Builder and open the report you want to edit.
  2. Add the BssiUDF8Value to the report, right-click it and select Text Box Properties.
  3. In the dialog, select Number, and select the Custom category.
  4. In the Custom format box, set the expression to =Field!BssiUDF8ValueFormat.Value.

Localized Reports

Select a region to see to which reports the user-defined fields can be added.

Note icon. Note: If you are using one of or both MEM and Subscription Billing user defined fields, a report layout based off of the 1303, 1306, and 1307 report IDs shows both MEM and Subscription Billing user defined fields in the report layout.

Logos on Reports

Use the steps in this article to add the logo from the MEM Entity Setup to a report. ClosedExpand to see which report the logo can be added.

Currently, the logo can be added to the following reports only: 

Report/Object ID Report Name
Bank
70210888

MEM Check

Tip: To add the entity to this report, follow the instructions for the Word or RDLC layouts, and add one or both of the following fields:

  • BssiGenJnlLineShortcutDimensionOne
  • BssiGenJnlLineShortcutDimensionTwo

Adding one or both of these fields can be useful when using the One Check per Vender per Document option to print a check for a vendor.  

70210892

MEM Export Electronic Payments (Purchase remittance)
Available in U.S. only.

70210968 MEM Check (Stub/Check/Stub)
70210967 MEM Check (Stub/Stub/Check)
70210980 MEM Check (Check/Stub/Stub)
Customer Statements
70210963 MEM Standard Statement
70210964 MEM Customer Statement By Entity
70210965 MEM Customer Statements
70210966 MEM Customer Statements By Entity
Purchasing
70210917 MEM Standard Purchase Order
70210918 MEM Purchase Invoice
70210919 MEM Purchase Receipt
70210920 MEM Purchase Blanket Order
Sales
1303 Draft Invoice
1306 Sales - Invoice
1307 Sales - Credit Memo
70210886 MEM Sales - Invoice
70210887 MEM Sales - Quote
70210889 MEM Draft Invoice
70210890 MEM Pro Forma Invoice
70210906 MEM Sales - Confirmation
70211024 MEM Sales - Credit Memo
Services
70211027 Service Contract Quote (Open Service Contract Quote List >Print)
70211028 Service Contract (Open Service Contract List >Process>Print)
70211040 Service Quote (Open Service Quote List >Print)
70211041 Service Order (Open Service Order List >Print/Send >Print)
70211042 Service Invoice (Open Service Invoice >Posting>Post and Print)
70211043 Service Credit Memo(Open Service Credit Memo >Post and Print)
70211056 Service Quote Details (Open Service Contract Quote Card > Report> Service Quote Details)
70211059 Contract Details (Open Service Contract Card > Report> Contract Details)
70211074 Service Document Test Report (Open Service Order Card > Action > Posting > Test Report).
It can also be opened from Service Invoice (Action > Posting > Test Report) and Service Credit Memo (Action > Posting > Test Report)
70211075 Service Shipment (Open Posted Service Shipments Card>Print)

Report Layouts with Entity Information

You can customize your report layouts to add your entity information to them. Alternatively, the report layouts listed here have the entity information already added to them. Use these report layouts if you want the entity information displayed on the report.

The following Word and RDLC layouts contain entity information which has replaced the default company information of the layout. You can find these reports in the Report Layout page, listed next to the standard reports. For example, for the MEM Purchase - Order layout with report ID 70210917, you can find layouts with entity information listed next to them as MEM Purchase - Order - Word - Entity Information.

Report layouts with entity information
Report ID Report Layouts

70210917

MEM Purchase Order

  • MEM Purchase - Order - Word - Entity Information
  • MEM Purchase - Order - RDLC - Entity Information
  • MEM Standard Purchase Order Email (Word) - Entity Information

Note icon. Note: The Purchase Order RDLC report layout from Business Central does not have any fields in it currently and so the MEM Purchase - Order - RDLC- Entity is also empty.

70211191

MEM Purchase Quote for North America

  • MEM Purchase Quote NA - Entity Information
  • MEM Purchase - Quote - RDLC - Entity Information

70211192

MEM Purchase Quote for Australia

  • MEM Purchase Quote - Entity Information

70211193

MEM Purchase Quote for United Kingdom

  • MEM Purchase Quote - Entity Information

70211195

MEM Purchase Quote for Switzerland

  • MEM Purchase Quote - Entity Information

70211196

MEM Purchase Quote for Netherlands, South Africa, France, and Denmark

  • MEM Purchase Quote - Entity Information

70211193

MEM Purchase Quote for Germany

  • MEM Purchase Quote - Entity Information

70210888

MEM Check for all regions

  • MEM Check - RDLC - Entity Information

70210964

MEM Customer Statement By Entity

  • MEM Customer Statement By Entity - RDLC - Entity Information

70210966

MEM Customer Statement By Entity, for North America

  • MEM Customer Statement By Entity - RDLC - Entity Information

70210967

MEM Check (Stub/Stub/Check), for North America

  • MEM Check (Stub/Stub/Check) - RDLC - Entity Information

70210968

MEM Check (Stub/Check/Stub), for North America

  • MEM Check (Stub/Check/Stub) - RDLC - Entity Information

70210980

MEM Check (Check/Stub/Stub) for North America

  • MEM Check (Check/Stub/Stub) - RDLC - Entity Information

70211160

MEM Check for Switzerland

  • MEM Check - RDLC - Entity Information

70210895

MEM Check for Germany

  • MEM Check - RDLC - Entity Information

70210940

MEM Check for Spain

  • MEM Check - RDLC - Entity Information

70210896

MEM Check for Finland, Denmark, and Netherlands

  • MEM Check - RDLC - Entity Information

70210906

Sales Order, for all regions

  • MEM Sales - Order - Word - Entity Information
  • MEM Sales - Order - RDLC - Entity Information
  • MEM Standard Sales Order Confirmation Email (Word) - Entity Information
1308 Sales Shipment for all Regions
  • MEM Standard Sales Shipment (RDLC) - Entity Information
  • MEM Standard Sales Shipment (Word) - Entity Information
  • MEM Standard Sales Shipment - Blue (Word) - Entity Information

70210886

Sales Invoice, for all regions

  • MEM Sales - Invoice - Word - Entity Information
  • MEM Sales - Invoice - RDLC - Entity Information
  • MEM Standard Sales Invoice - Blue (Word) - Entity Information
  • MEM Standard Sales Invoice - VAT Spec (Word) - Entity Information
  • MEM Standard Sales Invoice Email (Word) - Entity Information

70210887

Sales Quote, for all regions

  • MEM Sales - Quote - Word - Entity Information
  • MEM Sales - Quote - RDLC - Entity Information
  • MEM Standard Sales Quote Email (Word) - Entity Information
  • MEM Standard Sales Quote - Blue (Word) - Entity Information

70211024

Sales Credit Memo, for all regions

  • MEM Sales - Credit Memo - Word - Entity Information
  • MEM Sales - Credit Memo - RDLC - Entity Information
  • MEM Standard Sales Credit Memo Email (Word) - Entity Information

70210890

Sales Pro Forma Invoice, for all regions

  • MEM Sales - Pro Forma Invoice - Word - Entity Information
  • MEM Sales - Pro Forma Invoice - RDLC - Entity Information

70210892

Remittance Advice, for North America

  • Remittance Advice - Word - Entity Information
  • Remittance Advice - RDLC- Entity Information

70211186

Remittance Advice, for all regions.

Use this report when you generate remittance from the Vendor Ledger Entries page.

  • MEM Remittance Advice – Entries
  • MEM Remittance Advice – Entries with Entity Information

70211187

Remittance Advice, for all regions.

Use this report when you generate remittance from the Payment Journal page.

  • MEM Remittance Advice – Journals
  • MEM Remittance Advice – Journals with Entity Information

Add a Custom Report Layout

To add a MEM report, follow these steps: 

  1. For a specific entity, edit the MEM Entity Setup page and save the changes.
  2. Select Search and type, report layout. From the results, select Report Layout.
  3. In the Search box, type MEM, which advances the list to the Multi-Entity Management reports.
  4. Tip: The Multi-Entity Management report IDs start with 70210. Review the list to see which reports are available.

  5. Select the report you want and select Process > Custom Layouts.
  6. If no copies of the report are available in the Custom Reports layouts list, select New > New to create a copy of the layout in the format you want.
    Select the RDLC or Word layout, and select OK.

The custom report layout appears on the Custom Reports Layouts list and can be customized.

Add MEM Fields to a Word Report Layout

For more information about customizing a Word report layout, see Add Fields to a Word Report Layout in the Microsoft Dynamics 365 Business Central documentation.

To add MEM fields to a custom report layout, follow these steps: 

  1. If the custom report layout does exist, add a custom report layout.
  2. From the Custom Reports layouts list, select the layout, and then select Layout > Export Layout.
  3. The layout is exported to where you have set up your download location.

  4. Open the custom report layout in Microsoft Word.
  5. If the Developer tab is not available, open the Word Options to customize the ribbon.

  6. In the Developer tab, select XML Mapping pane and in Custom XML Part, select the custom XML part for ADD INCLUDE report, which is typically last in the list.
  7. Expand Header to see all the custom XML parts that you can add.
  8. Tip: MEM fields start with BssiEntity.

  9. Put the cursor at the place you want to add the field in the report, right-click the XML part you want to add, and select Insert Content Control > Plain Text.
  10. Note icon. Note: To add the logo, right-click BssiEntityPicture and select Insert Content Control > Picture.

  11. Save the changes.
  12. Back on the Custom Reports layouts list, in Microsoft Dynamics 365 Business Central, import (Layout > Import Layout) and then update (Layout > Update Layout) the layout.

Add MEM Fields to a RDLC Report Layout

For more information about customizing a RDLC report layout, see Designing RDLC Report Layouts in the Microsoft Dynamics 365 Business Central documentation.

To add MEM fields to a custom report layout, follow these steps: 

  1. If the custom report layout does exist, add a custom report layout.
  2. From the Custom Reports layouts list, select the layout, and then select Layout > Export Layout.
  3. The layout is exported to where you have set up your download location.

  4. Open the RDLC layout in SQL Server Report builder.
  5. Expand the Datasets folder to get all fields in that are in Microsoft Dynamics 365 Business Central plus the additional MEM fields.
  6. Tip: MEM fields start with BssiEntity.

  7. Drag the MEM fields to the report as needed save the changes.
  8. To add a logo, select BssiEntityPicture.

  9. Back on the Custom Reports layouts list, in Microsoft Dynamics 365 Business Central, import (Layout > Import Layout) and then update (Layout > Update Layout) the layout.

Adding Entity Information to the Customer Statements by Entity Report

For the Customer Statement by Entity report to display the correct entities and their information on the report header, you must customize the report in Report Designer for Visual Studio or Report Builder for SQL Server.

To add your entity information to a report layout, do the following:

  1. In your MEM environment, go to the Report Layouts card. Search for the Customer Statements By Entity report.
    1. The Customer Statements By Entity report ID is: 70210966.
  2. Select the report and then select LayoutExport layout to download the report to your computer.
  3. The layout is exported to where you have set up your download location.
  4. Find the report on your computer and remove .rdlc from the file extension.
  5. Open the RDLC layout in SQL Server Report builder.
  6. Expand the Datasets folder to get all fields that are in Microsoft Dynamics 365 Business Central plus the additional MEM fields.
    1. Tip: MEM fields start with BssiEntity.
  7. On the left side of the report layout, you can delete the following expression field: CompanyAddress8.
  8. On the left side of the report layout, replace the following CompanyAddress expressions with BssIMEMEntityInfo in the expression value fields.
    1. To edit the following expressions, select the expression in the report layout and right-click. In the options, select Expression.
    2. In the Expression editor, replace CompanyAddresses text with BssIMEMEntityInfo. Edit the following expressions so they have BssIMEMEntityInfo in them. Refer to the image below to see what the edited value looks like.
      1. CompanyAddress1
      2. CompanyAddress2
      3. CompanyAddress3
      4. CompanyAddress4
      5. CompanyAddress5
      6. Image showing expression editor in Microsoft Report Builder with BssiMEMEntityInfo text highlighted within the entire expression.

    3. Note icon. Note: When you edit the expressions so they will show MEM fields, the MEM fields that are displayed are based on the first number of each expression. For example, the first expression has the following value:
      1. =Cstr(Choose(1,Split(Cstr(ReportItem!BssiMEMEntityInfo.Value),Chr(177))))
    4. The 1 in the expression corresponds to the Entity Legal Name. See the MEM field expressions table to see which expressions correspond to which MEM fields.
  9. Then, on the report layout, select the BssiEntityLogo. Increase the height of the logo by dragging the logo box down. Refer to the image below to see how the logo is expanded.
  10. Image of Customer Statement by Entity report in Microsoft Report Builder with the Binary Stream entity logo enlarged.

  11. Save your report layout.

MEM field expressions
Field Description
Expression 1 Entity's Legal Name
Expression 2 Entity's Billing Address
Expression 3 Entity's Billing Address 2
Expression 4 Entity's Billing City
Expression 5 Entity's Billing State
Expression 6 Entity's Billing Zip Code
Expression 7 Entity's Billing Country

To use the report layout in Business Central, do the following:

  1. Go to the Report Layouts card.
  2. Select the Customer Statements By Entity report, and open the More options, with three dots, menu.
  3. Select Edit Info and confirm that you want to edit a copy of the layout.
  4. Enter a name and description for your report layout.
  5. Select the report layout that you just created, and then, on Action tab, select Replace Layout.
  6. Replace the that layout with the file of the one that you edited and saved.
  7. Run the report to make sure that the entity information has been added correctly to the report layout.

By default, reports show the company logo. If needed, reports can be customized to show the logo for the entities instead of the company logo. However, an issue occurs when customizing the logo on the page header to use the logo for the entity instead of the company logo:

  • To print an individual report, you can select the one report and print it. The logo that appears on the page header is the logo for the entity of the individual report. The logo that is in the header appears as expected.
  • To print several reports in a single action for different entities, you can select multiple reports and print them. In this case, the logo that appears on the page header for all selected reports is the logo for the entity from the first report. Because each selected report is a different entity with a different logo, it is expected that each report shows the logo for the entity of the report. Currently, this method to print several reports does not work as expected.

As a workaround and best practice for this issue, do not add the entity logo to the page header. As a best practice, add the entity logo to the body of the report, and do the following: 

  1. In the area you want to add the logo field, right-click and select Insert>Image.
  2. Open the Image Properties dialog and in the General tab, use the following settings: 
    • Select the image source = Database
    • Use this MIME type = image/{image file type}
      where the {image file type} must be the same as the image you selected (e.g., jpg, png); if you do not know what the image file type is, you can select image/bmp.
  3. For Use this field, select the expression button, and in the Expression dialog, copy the following expression in the Set expression for: Value box: 
    • =System.Convert.ToBase64String(Fields!BssiEntityPicture.Value)
  4. Select OK until you return to the main template page.
  5. Save the changes to the template.

Customizing MS Word Customer Statements by Entity Report

If you customize the Word layout of the MEM Customer Statement by Entity, you must use specific fields in the XML mapping pane of the Word document.

To customize the Word layout of the MEM Customer Statement by Entity do the following:

  1. In your MEM environment, go to the Report Layouts card. Search for the MEM Customer Statements By Entity report.
    1. The MEM Customer Statements By Entity report ID is: 70210964.
  2. Select the report and then select LayoutExport layout to download the report to your computer.
  3. The layout is exported to where you have set up your download location.
  4. Open the custom report layout in Microsoft Word.
  5. If the Developer tab is not available, open the Word Options to customize the ribbon.
  6. In the Developer tab, select XML Mapping pane and in Custom XML Part, select the custom XML part for the MEM Customer Statements By Entity report, which is typically last in the list.
  7. In the XML Mapping pane, use the fields under the Customer heading to customize the layout.
  8. Screenshot of the Word layout, displaying the XML mapping pane and highlighting the fields under the Customer heading. Text on the image says: Use these fields when customizing the layout.

  9. Under the Developer Tab, select Design Mode to turn it on. You can now make changes to the layout.

After you are done customizing the layout, you can then upload it to Business Central.

To use the report layout in Business Central, do the following:

  1. Go to the Report Layouts card.
  2. Select the MEM Customer Statement by Entity report, and open the More options, with three dots, menu.
  3. Select Edit Info and confirm that you want to edit a copy of the layout.
  4. Enter a name and description for your report layout.
  5. Select the report layout that you just created, and then, on Action tab, select Replace Layout.
  6. Replace the that layout with the file of the one that you edited and saved.

Note icon. Note: For developers, you can add custom fields to the Word report layout. When you add custom fields, make sure that you add them inside of the Customer data set within the AL file.

Adding the Entity Logo to the Header and Footer of a Report

Note: These steps are only needed if you are adding the logo to the header or footer of the check layouts.

You do not have to do these steps if you are adding a logo to the header or footer of a Sales Invoice or a Purchase Order.

Adding the entity logo to the footer of a MEM report requires the following additional steps. These steps work for any MEM report where the entity log can be added.  

  1. In the report builder, select Property Pages to open the Report Properties dialog, and select the Code tab.
  2. Scroll to the end of the custom code box, and paste the following code.
  3. Copy
    Custom code for Report Properties:
    Shared PictureData as Object

    Public Function GetPicture() as Object
        Return PictureData
    End Function

    Public Function SetPicture(NewData as Object)
        if NewData>""
            PictureData = NewData
    end if
    End Function 
  4. On the report body, add a hidden text box field CompanyPicture with the following BssiEntityPicture value expression:
  5. Copy

    BssiEntityPicture value expression

    =Convert.ToBase64String(Last(Fields!BssiEntityPicture.Value))

    Note icon. Note: This text box must be set as visible. The size of the textbox can be reduced so that it does not display on the report. If you are modifying a Check report then the field must be part of the existing Tablix in the body of the report.

  6. On both the report header or footer, add a hidden text box field with the following expression to set the company picture.
  7. Copy

    Set company picture expression

    =Code.SetPicture(ReportItems!CompanyPicture.Value)

    Note icon. Note: This text box must be set as visible. The size of the textbox can be reduced so that it does not display on the report.

  8. Immediately below the hidden text box with the set company picture expression, add an image box and apply the following settings to the General tab of the Image Properties dialog.
    Important: The image box must always be put below the hidden text box with the set company picture expression.
    1. Set Select the image source to Database.
    2. In Use this field, specify the following expression.
    3. Copy

      Image box expression

      =Convert.FromBase64String(Code.GetPicture())
    4. Set Use this MIME type to image/bmp.
  9. Save the report.

When the report is run, the logo should appear as expected.

Select the Custom Report Layout to Use

After you have modified a report layout, you must select your custom report layout in the Report Layout Selection. If you do not select the modified report, Microsoft Dynamics 365 Business Central continues to use the default report that is available in the Microsoft Dynamics 365 Business Central.  

  1. Back on the Report Layout Selection page, for the report line, change the Selected Layout to Custom Layout.
  2. On the Custom Report Layouts dialog, select the custom layout that you want to use, and select OK.
  3. The line is updated with the layout. If needed, you can update the Custom Layout Description.

    Tip: Make note of the report ID that you want to use.

  4. Select Search and type, report selection. From the results, select the Report Selection page for the specific type you want. For example, you can select sales, purchase, or bank.
  5. On the Edit Report Selection page of your choice, select the Usage option you want. The usage option is available for sales, purchase, or bank.
  6. In the lines, change the Report ID to the Multi-Entity Management report ID that you want to use for the report.
    If you had noted the report ID, specify the report ID. Or you can search for the report you want.

Using MICR Fonts on Checks

Magnetic Ink Character Recognition (MICR) fonts are the style of font usually used for bank information at the bottom of checks.

  • In Microsoft Dynamics 365 Business Central update 15.3 and newer, the MICR fonts are installed and available to use.
  • Both the E-13B and the CMC-7 standards are supported.

For more information about MICR fonts, review the Microsoft Dynamics 365 Business Central documentation: 

To be able to use the MICR fonts, the fonts must be installed on your computer and on your Microsoft Dynamics 365 Business Central environment. All MICR fonts start with IDAutomation. If you are missing the MICR fonts or cannot access them, contact your administrator for assistance.

With Multi-Entity Management, you can use the MICR fonts on the MEM Check (Report/Object ID 70210888). The following steps focus on using the MICR fonts on the bank account for the entity.

  1. If you currently do not have a custom copy of the MEM Check layout, add a custom report layout.
  2. If you are editing the Word format, add a text box for the bank account information (BssiEntityBankAccountNo) and review the font.
    The bank account for the entity is set up on the MEM Entity Setup page.
    1. In the Home tab, Font group, change the Font to a MICR font.
  3. If you are editing the RDLC format, add text box for the bank account information (BssiEntityBankAccountNo) and review the properties.
    1. In the Properties pane, go to the Font property and set the FontFamily to a MICR font.
  4. In Microsoft Dynamics 365 Business Central, select the report layout that you just edited.