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, ...
Answered

Code migration from USR layer to a lower layer e.g. Var, Cus in AX7

(0) ShareShare
ReportReport
Posted on by

Hey all,

I need to move code customization from USR layer to CUS layer in D365 FO on-premises environment. Is there any documentation for doing it?

Also, I want to know the affects of it and the changes I will need to do. Will it work the same way as it is currently working?

Thanks

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Why do you want to move it? It has practically no impact at all.

    Anyway, if you want to move an entire model to a different layer, I think you can just modify the <Layer> property in the model descriptor file with a text editor. The property is a number, I don't know what number corresponds to which layer. But you can find it out in one minute by creating a dummy model on CUS layer and looking what number it has in the <Layer> property in the descriptor file. Then delete this temporary model.

    If you want to move some objects, create a new model on the correct layer, and copy-paste the objects in file browser from the old model to the new model (in AOSService/PackagesLocalDirectory). Then build first the old model, then the new model, and do a db sync.

    It will not change any functionality or break any data, assuming you don't have any overlayering code in place. If you do, my suggestion above doesn't apply at all.

  • Community Member Profile Picture
    on at

    Hey Nikolaos, It clears my understanding.

    Thanks

  • André Arnaud de Calavon Profile Picture
    301,194 Super User 2025 Season 2 on at

    Hi AR01,

    Is our question completely answered? If so, would you mind to mark the reply from Nikolaos? ("Did this answer your question? > Yes")

    The thread will then get the status answered and would be helpful as reference for other persons with the same question.

    By the way, I think your question is great and a valid one to ask.

  • Community Member Profile Picture
    on at

    Sure, thanks for telling me.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans