Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

Excel Add-in how to choose Default Fields when loaded

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.

  • AaronChen Profile Picture
    AaronChen 65 on at
    RE: Excel Add-in how to choose Default Fields when loaded

    Thanks Adrian,

    That works!

    Also thanks for the help guys.

  • Verified answer
    Adrian Peter Profile Picture
    Adrian Peter 219 on at
    RE: Excel Add-in how to choose Default Fields when loaded

    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]

  • Suggested answer
    vinitgoyal2005 Profile Picture
    vinitgoyal2005 6,330 on at
    RE: Excel Add-in how to choose Default Fields when loaded

    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.

  • AaronChen Profile Picture
    AaronChen 65 on at
    RE: Excel Add-in how to choose Default Fields when loaded

    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.

  • AaronChen Profile Picture
    AaronChen 65 on at
    RE: Excel Add-in how to choose Default Fields when loaded

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

  • Suggested answer
    Adrian Peter Profile Picture
    Adrian Peter 219 on at
    RE: D365FO Excel Add-in how to choose Default Fields when loaded

    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

  • Suggested answer
    saurabh bharti Profile Picture
    saurabh bharti 15,039 Super User 2024 Season 2 on at
    RE: D365FO Excel Add-in how to choose Default Fields when loaded

    Hi,

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

  • Suggested answer
    vinitgoyal2005 Profile Picture
    vinitgoyal2005 6,330 on at
    RE: D365FO Excel Add-in how to choose Default Fields when loaded

    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
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: D365FO Excel Add-in how to choose Default Fields when loaded

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

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans