web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Can i rename a model after i created it?

(0) ShareShare
ReportReport
Posted on by 1,552

So i have created a new model and started adding objects to it. Now i want to rename it, is that possible?

when i click on update Model parameters, the model name is disabled so how do i do it?

Is the only option to delete the model and create a new one? If so, can i transfer all my objects to the new model without recreating them from scratch?

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Junior AX,

    You can create a new model and move all objects from one model to another. To do this you can create one project for the old model and add all objects from the old model to it. In the same solution create a new project from a new model and drag-drop objects from the old project to the new project. If you already checked-in old model to source control, you don't see deleted objects in pending objects and you need to add deleted objects there manually and after you can delete old model completely.

    The only issue can be with label files and you would need to copy it manually from one model folder to another.

    If you already deployed the old model to the sandbox environment or production, you would need to follow the solution provided in the article.

    docs.microsoft.com/.../uninstall-deployable-package

    By the end of this year, all deleted models will be deleted automatically without additional steps docs.microsoft.com/.../aio-deployable-packages

  • junior AX Profile Picture
    1,552 on at

    Hi sergei,

    So there is no option for renaming.

    I didn't add anything to sojrce control yet. So now if i create a new project with the new model and drag and drop, the objects in the old model will disappear? I mean in AOT i will start seeing for example salestable.extension [newModel] instead of salestable.extension [old model] as simple as that?

    As for the label file? Do u mean i need to copy paste the three fields in each row? They won't be converted in drag and drop? Or i should create a new label file because if i try and drag and drop i might lose the data?

    One more thing if we write click on label file and edit in xml, if i change the values in the xml won't that solve the problem?

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    You can try to rename all the folders and change Descriptor file it should be enough. But the easiest way is to create new model and move all objects (Classes, tables) into it. If you don't use version control, you can just simply copy  them in explorer.

  • junior AX Profile Picture
    1,552 on at

    Hi ievgen,

    What do u mean by copy them in explorer? Can u please explain more and how about the label file.

    It's just i have about 20 objects and i want to make sure of the process before doing anything and i also don't want to lose the data i made in tables.

    Also by renaming all folders... U mean by renaming the model name folder in packageslocaldirectory and editing the descriptor.. That would be enough for the new name to be reflected in AOT... Or is there any other folders?

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    I would rather create new one. You will get new folder under PackagesLocalDirectory lets say "MyNewModel" and old one "MyModel".  Take everything from PackagesLocalDirectory\MyModel\MyModel and copy it to PackagesLocalDirectory\MyNewModel\MyNewModel thats enough

  • junior AX Profile Picture
    1,552 on at

    And this will include the data in label files and data table?

    Thank u this looks simple i will try it tomorrow.

    But wouldn't that make conflicts because the objects will have  the same name? I will surly change the names but should i do it after copying before opening visual studio? Or it doesn't matter, maybe by copying the name of objects will automatically include the word copy? 

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Data sits in DB so dont worry about it. Labels will be in one of those folders. You need to delete old model after that (just delete PackagesLocalDirectory\MyModel folder) but back it up before deleting. After that you wont have any conflicts. Dont change names otherwise it will drop tables and you will lose data.

  • junior AX Profile Picture
    1,552 on at

    How can i check in the descriptor, i created a model but how do i put it in pending changes? I tried to add it from solution by add existing items from AOS Service but i got this
    pastedimage1587455739516v1.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans