12 Dec’16

D365 Finance and OperationsModel Import/Export in Dynamics 365 Operations

In this blog article, we will see how we can export model in a model file, then import model file in development environment and delete existing model in development environment.

Prerequisites:

  1. D3fO Environments.

Steps:

  1. Export Model in a Model File.
  2. Import Model File.
  3. Resolve Conflicts.
  4. Build and Synchronize Model.

Export Model
To export a model in a model file, use the ModelUtil.exe tool which is located in j:\AOSService\PackagesLocalDirectory\Bin and the -export directive.

ModelUtil.exe -export -metadatastorepath= [path of the metadata store] -modelname=[name of the model to export] -outputpath=[path of folder where model file should be saved]

Example:

Import Model
To install a model file in development Environment, use the ModelUtil.exe tool and the -import directive.

ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] -file=[full path of the file to import]

Example:

If the model already exists in Development Environment, then first delete the model using ModelUtil.exe tool and -delete directive.

ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] -modelname=[name of the model to delete]

Example:

Resolve Conflicts
If the model you installed has customizations in higher layer, you need to resolve code or metadata conflicts.

Under Dynamics 365 -> Addins -> select Create Project from Conflicts.

  1. In dialog box, select the model you installed, to check for conflicts.
  2. Click Create Project.
  3. New Project is created with elements having conflicts. Resolve the conflicts.

Build and Synchronize
Build the Model and Synchronize the Database.

Written by

Sohagani Shah

ERP Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Import Time Entries in PSA from your Bookings in D365 PSA v3

    25 April’ 2019

    Often, one of the real-life scenarios is making time entries by either remembering what you did the whole week or lookin...

    Read more
  • Managing with Multiple Legal Entity Data in Microsoft Dynamics NAV / Business Central

    25 April’ 2019

    Problem Statement: Well, my client is a Trader of Oils & Fatty Acids and has multiple legal entities to perform vari...

    Read more
  • Facing issues with Microsoft Outlook? Use Microsoft Support & Recovery Assistant

    22 April’ 2019

    Many times you find issues like one of your users are unable to set up their Office 365 Email account in Microsoft Outlo...

    Read more
  • How to insert data into reports in Business Central using a variable in Request Page

    16 April’ 2019

    Introduction: Here, I will demonstrate how a user can add data into reports by themselves from the Request Page in Busin...

    Read more
  • Non-Billable classification of task work around in PSA V3

    15 April’ 2019

    Problem Definition: As soon I upgraded my PSA version from V2 to V3, I saw that the role field got deprecated. Not only ...

    Read more
  • We respect your privacy.
  • This field is for validation purposes and should be left unchanged.