Ziyin Peng Consulting Developer
Share this article

Microsoft Dynamics 365 Finance and Operations has several convenient ways to view, edit, and publish data. For example, there is a helpful feature that opens information in Excel, which uses some out-of-the-box Excel templates.

If the standard Excel template does not meet your requirements, then the template can easily be modified. Note that it is best practice to keep the standard template untouched and create a separate entry template for your exact use case.

The standard Excel templates can be accessed from Organization Administration → Setup → Office → Integration → Document Templates. There is a download option to access the actual template file.

In this article, we will make some modifications for General Ledger Journal, since the out-of-the-box template only shows the Main Account value, rather than the entire financial dimensions.

If we just want to show the dimensions as they are seen on the D365 user interface (UI), then we need to remove the Main Account column and add the Financial Dimension column as it is in the UI.

Here is the screenshot for the issue: When you open the dataset in Excel, it does not show the entire financial dimension.

 

Note: You can also use the Visual Studio → Dynamics365 → Addins → Add financial dimensions to Odata option to separate the financial dimensions into different columns; however, keep in mind that if this is done, the additional columns need to be added and re-arranged in the template. but the user may not want that since they have to do extra steps to add these new columns to spreadsheet and rearrange the columns. Get more details about the process of adding dimensions to excel templates this here

How to customize the General Ledger Journal

1. Open the standard Excel template and make modifications.

In our example, for the General Ledger Journal Excel template (LedgerJournalLineEntryTemplate), the dimension column in D365FO only shows the Main Account in the Excel template. We will download and modify the template and save it to a local path. Here's how this is done:

  1. Go to Organization administration→ Setup→ Office integration→ Document templates, find the              LedgerJournalLineEntryTemplate and download it
  2. In the Microsoft Dynamics Office Add-in, click the Design button
  3. Select to edit LedgerJournalLine data source
  4. In the selected fields grid, remove Account.AccountValue - Main account.Main account.
  5. In the Available fields grid, select AccountDisplayValue - Account.
  6. Click update
  7. Save the modified version to a local path.

 

2. In Visual Studio, create a new project and add a Resource to the project

Point the Resource to the new saved Excel file in the local path.

 

3. Create a new class to extend DocuTemplateRegistrationBase class and implement LedgerIJournalExcelTemplate. 

The DocuTemplateRegistrationBase class will look through all the child classes to populate the Document templates in D365FO. The LedgerIJournalExcelTemplate is in the interface that has the framework. 

Copy all the logics from LedgerDailyJournalExcelTemplate class. This is the class for the standard General Ledger Journal Entry template. We just need to change the template name and label, as shown below: 

 

4. Build the project.

5. Reload system templates

Go to D365FO→ Organization administration→ Setup→ Office integration→ Document templates. Click "Reload system templates". You will see the new template is added to the list.

 

6. Test your new ledger

To test, go to General Ledger -> Journal entries -> General journals -> Open lines in Excel. You can see the new template entry is added.

 

When opened in Excel, the new Account column is showing the entire financial dimension now.

This straightforward process has not changed much itself, but there have been a lot of updates to Visual Studio and D365 since this original article was released. For example, Visual Studio 2026 offers AI enhancements, like inline Copilot code suggestions, performance-aware Profiler Agents, automated documentation, and more to speed up development and troubleshooting when customizing Excel templates and OData entities. If you’d like help leveraging and understanding these features (or any other in D365 and the Microsoft ecosystem), reach out to our experts to start the discussion today. 

You may also like:

Blog posts

Cancelling transfer orders in Dynamics 365 Finance and Operations

Although the ability to cancel shipped transfer orders was introduced in November 2020 (D365 FO version 10.0.13, Update ...

Blog posts

BOM, formula and route scrap factors in Dynamics 365 FO

In manufacturing, scrap is an inevitable part of the process. Whether it's metal shavings, resin pellets, or meat trimmi...

Blog posts

Maximize ERP agility and performance with Microsoft Power Platform

Enterprise Resource Planning (ERP) systems are essential for financial management, human resources, and logistics, but t...

image alithya default
Podcasts

Transforming manufacturing: Keystone Industries’ journey with Alithya and Microsoft D365

In this engaging episode of "Manufacturing Minds," we welcome CJ Daas to delve into Keystone Industries' transformative ...

Podcasts

Mixed mode manufacturing

Podcast: Manufacturing Minds: Powered by AlithyaEpisode 1 – Mixed Mode ManufacturingGuest Speakers: Dan Burke, Prin...

Blog posts

Transform legacy ERP systems: how Microsoft D365 unlocks the future

Organizations that are competing in a rapidly changing business environment must confront the double concern of maintain...

Blog posts

Making Sense of Planned Order Dates in D365 Finance and Operations

The planned orders form in Microsoft Dynamics 365 can be confusing when dealing with its multitude of date fields. In th...

Client Stories

Balchem Replaces Four ERP Systems with Microsoft Dynamics 365

Headquartered in New Hampton, New York, Balchem delivers solutions to the nutrition, health, and food markets with three...