Dynamics 365 for Operations: How to Create a New Model

by | Feb 7, 2017 | Development, Dynamics 365 for Finance and Operations

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

0 Comments

Submit a Comment

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

Upcoming Events

july

16jul11:00 am12:00 pmConfab with Stoneridge - Livestream - Business Intelligence Power Hour

22jul10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Material Handler

22jul12:00 pm1:00 pmImprove Field Service Delivery and Increase Customer Satisfaction

30jul11:00 am12:00 pmConfab with Stoneridge - Livestream - Power Apps Power Hour

august

03aug(aug 3)8:00 am07(aug 7)5:00 pmMicrosoft Dynamics GP Core Financials Bootcamp

05aug10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Shipping / Receiving Department

05aug12:00 pm1:00 pmHow Ag Retailers Can Simplify Processing Equity Payments using Levridge

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X