Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to modify model metadata

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created few models to accomodate my custom logic. When created I have assigne them a version 1.0.0.0.

I have deployed the solution to the customer's side and now I want to increase the version of the models to reflect the fact that this is a new generation of code.

how do i do that properly? the model management tool in the development ennvironment does not have a function to edith model metadata.

the entire solution is under source control and i can locate model metadata file in the repository, I'm pretty sure that it is not a trivial task of just changing the content of the file because it should be sinchronized withe the model store.

anyone has any ideas?

*This post is locked for comments

  • Joris dG Profile Picture
    Joris dG 17,775 on at
    Re: How to modify model metadata

    Ok, I see your point. However, changing it with the edit-axmodelmanifest or doing it in source control are both manual steps regardless.

    I guess you are saying it would be clean if there was a way to do it from the client and check that back into source control, and I'd have to agree with you.

    So conclusion is it can be done, but it's not as clean as it could be.

    I would consider putting this in connect as a recommendation to Microsoft for a future release.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: How to modify model metadata

    Yes you can edit the properties of the manifest using PowerShell or admin utility, however it is not working in conjunction with the source control. If you have your AX client closed you can alter properties of the manifest using Edit-AXModelManifest, you can confirm with Get-AXModelManifest that property is changed, but as soon as you start the AX client/development workspace it reverted everything to values in the source control. The only way to update it with the source control is to manually (outside the AX client) checkout model.xml file under respective model folder, edit it, check it in, start AX development environment and then use synchronize function under Version Control menu.

    Sure, this does not look pretty, makes build control very manual and prone to errors.

  • Joris dG Profile Picture
    Joris dG 17,775 on at
    Re: How to modify model metadata

    The "metadata" as you describe is called the model manifest, and it can be changed using the command line utilities.

    There is a technet article about how to do this: technet.microsoft.com/.../hh433512.aspx

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans