Dynamics 365 for Operations: How to Create a New Model

By Brandon Carmichael | February 7, 2017

Dynamics 365 for operations: how to create a new model

Before we learn how to create a new model in Dynamics 365 for Operations (AX7), it is important to understand what a model is. A model can be defined as a collection of elements that represent a distributed software solution.

To create a new model, in Visual Studio – from the menu, click on the Dynamics AX > Model Management > Create model… This will open the model wizard.

New model in visual studio

From the model wizard, you can specify the Model name, Model Publisher, Layer, Version, Model description, and Model display name.

New model_Brandon2

After clicking Next, you will need to determine if you want to Create new package, or Select existing package.

New model_Brandon3

Create a new package

Create a model that builds into its own assembly and is deployed as a separate package. Choose this option the extend the application.

Select existing package

Create a model that is part of an existing package. Choose this option if your model requires customizations of an existing package, including overlaying of source code and metadata.

A few things to consider before making your selection:

  • If your model does not override any existing objects and is rather extending them or consists of brand new custom objects, choose Create a new package.
    • This is the preferred choice for making modifications in Dynamics365 for Operations.
  • If your model customizes or overrides objects in ways similar to how existing methods were modified in AX2012, choose Select existing package.
    • Your new model will be created in the same deployment package as the objects being customized
      • The new model has to exist in the same deployment package because there will be a dependency between your model and the models containing the objects being customized

Examples of extending vs. overriding objects:

  1. Adding methods = extending
  2. Changing the code within an existing Microsoft method = overriding
  3. Changing the properties on a form control or table = overriding
  4. Adding an event handler that responds to the event of clicking a button = extending

If you selected Create a new package, you will need to select any referenced models after clicking Next. Selecting referenced models means, you will need to select any models that you want your new model to see or which elements you want the new model to have access to. There are many models, for example some system models include the Application Platform, Application Foundation, and Application Suite that have a lot of the tables you’ve come used to seeing: customer table, vendor table and so on. For the purpose of my blog article, I will select all three: Application Platform, application foundation, and Application Suite. When finished select, Next.

New model_Brandon4

After reviewing the summary, please take note of the two check box options, which are checked by default.

New model_Brandon5

Because I left the two checkboxes checked, after reviewing the summary and selecting Next I am prompted to give a name for the new project being created associated with my new model.

New project

After hitting Ok, my new project (associated with my model) can be seen in the Solution Explorer window. From my picture below, outlined in red is my project name, in white is the layer, and blue is the model.

Solution explorer window

At this point, I am now ready to begin adding and customizing elements. A quick note, now that I have my model created, I can go back and update the model parameters as needed. To do this, I will navigate to: Dynamics AX > Model management > Update model parameters… This will launch the model wizard.

New model_Brandon8

On the Update model parameters form, select the model you would like to update. In this case, I will select the Stoneridge model – notice that the Model publisher, Version, Model description, and Model display name are automatically filled in and are editable. After selecting Next, I am able to select or deselect any referenced packages. I’ve decided to deselect the AppliationSuite. After selecting Next, I am able to review the models summary before I select Finish. Notice in my models’ summary, ApplicationSuite is no longer a referenced package.

New model_Brandon9

Related Posts

Recommended Reading:

Manage U.S. Use Tax on Purchase Orders in Dynamics 365 Finance and Operations

  Managing sales tax requirements on your business purchase can be complicated, but Dynamics 365 Finance and Operations can help […]

Read the Article
5.19.22 Dynamics CRM

How to Write a Great Support Ticket in the Stoneridge Support Portal

Submitting a support ticket through the Stoneridge Support Portal is a quick and effective way to get assistance for any […]

Read the Article

Managing Your Business Through Uncertain Times Using Dynamics 365 Finance and Operations

  Dynamics 365 Finance and Operations (F&O) can help you make informed decisions on how to move your business forward. […]

Read the Article
5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article
5.5.22 Dynamics GP

The Real Story about the Long-Term Future of Dynamics GP Support

I’ve seen a number of people put forward comment that Dynamics GP is going away and you have to get […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release – Financial Enhancements

The Dynamics 365 Businses Central 2022 Wave 1 Release has a lot of new and exciting features to help your […]

Read the Article
4.29.22 Dynamics GP

Dynamics GP Transaction Removals: Bank Reconciliation

  This is part 2 of a 3 part series on Dynamics GP Transaction Removals. These quick tips will hopefully […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!