web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Excel Add-in how to choose Default Fields when loaded

(0) ShareShare
ReportReport
Posted on by 65

Hi

We are the end user of D365FO, just wonder if there's a way to change the default fields loaded to Excel add-in?

For example, if we are using Item Arrival Journal Line V2, and a lot of the field is not necessary, instead of add/remove the field each time we load excel add-in, is there a way in D365FO we can change the default fields to be loaded?

Thank you.

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    You can try to create a template docs.microsoft.com/.../office-integration-tutorial

    or do a code change docs.microsoft.com/.../office-integration-tutorial

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi AaronChen,

    As shared by ievgen Miroshnikov, you can update an existing template and create a new user-defined template using UI. You can create a new system-defined template using X++. This is possible in most cases but there are few exceptions in the system like General journals.

    You can check d365foe.blogspot.com/.../how-to-add-custom-template-to-open.html and d365foe.blogspot.com/.../how-to-add-custom-template-to-open_13.html

  • Suggested answer
    saurabh bharti Profile Picture
    15,059 Moderator on at

    Hi,

    Please navigate to Common Module> Office integration, here you can define your own templates for data entities

  • Suggested answer
    Adrian Peter Profile Picture
    219 on at

    Hi

    • Launch the standard template (e.g. Item Arrival Journal Line V2) and customize it according to your needs (remove/add columns)
    • Save this template
    • Navigate to 'Common\Office Integration\Document templates'
    • Upload your template and give it a name, e.g.:

    pastedimage1599027055182v1.png

    ==> this new Excel-Template is linked implicitly to the Root-Entity, means:

    • Open the form, which is based on Root-Entity and voilà:

    pastedimage1599027184682v2.png

  • AaronChen Profile Picture
    65 on at

    Thanks for sharing, I did the same for item arrival journal, but that's not working.

  • AaronChen Profile Picture
    65 on at

    I was trying to following the link.

    But the item arrival journal line v2 was not in the data template, and I create a new one but that's not working.

    When I open it from the excel add-in in item arrival journal, it's still using the system default template.

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi AaronChen,

    you will not able able to add the template from UI, because the root data source for Item Arrival journal is WMSJournalTable but root datasource for WMSItemArrivalJournalLineV2Entity is WMSJournalTrans. You will need to do this by code.

    Look at docs.microsoft.com/.../customize-open-office-menu and you can find simple examples in AOT like form/HCMGoal Form/DemoDataPost etc.

  • Suggested answer
    Adrian Peter Profile Picture
    219 on at

    Hi

    There is no coding required if you agree with some restrictions.

    The last statement by Vinit is correct --> Templates are linked with Root DataEntity of Form. And the form for item arrival has arrival journal header as root entity. Let's explore a little:

    I have created two templates based on standard Entities ...

    • WMSItemArrivalJournalHeaderV2Entity
    • WMSItemArrivalJournalLineV2Entity

    ... and uploaded to document template

    pastedimage1599059366926v2.png

    --> result:

    pastedimage1599059202118v1.png

    --> only the header based template is available, because this is based on root data entity.

    But: you can easily create an Excel-Template with Header and Line structure (1:n). There are several examples in standard. So I created a third template, which uses Entity WMSItemArrivalJournalHeaderV2Entity as Entry-Point and uses WMSItemArrivalJournalLineV2Entity for details. Could look like this:

    pastedimage1599059440339v3.png

    ... and ...

    pastedimage1599059482785v4.png

    Now I uploaded this new combined template and now it's available

    pastedimage1599059551754v6.png

    ... and it works perfectly --> loaded these two arrival lines via my new template:

    pastedimage1599059606788v7.png

    But of course this solution allows only to load journal by journal --> you cannot load many lines, which relate to different journals.[View:/cfs-file/__key/communityserver-discussions-components-files/795/ItemArrivalJournal.xlsx]

  • AaronChen Profile Picture
    65 on at

    Thanks Adrian,

    That works!

    Also thanks for the help guys.

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 June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 94 Super User 2026 Season 1

#2
Sagar Suman Profile Picture

Sagar Suman 72 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 58 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans