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

Removing custom code (form, menu item, classes, etc)?

(0) ShareShare
ReportReport
Posted on by 45

I'm trying to remove some legacy custom functionality consisting of a form, a table (TempDB), a class, and a menu item. I created a new project/solution for the task and added the the files to the project. I then deleted the files and built the containing model along with a DB sync. The objects are no longer in the AOT but the functionality... form, menu item, functionality is still there. 

Am I missing something? 

Thanks for the help.

J

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

    Hi,

    How have you performed the build? Have you used build or rebuild option on project or you build model from Dynamics 365 menu?

  • jkmajcen Profile Picture
    45 on at

    Build, rebuild, clean solution and build, etc. I also built the model from the D365 menu option.

  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Building the solution isn't sufficient, because it builds only objects in the solution - which are none. Your objects still exist in binaries generated from the source code and metadata.

    Building the whole model is the solution. Please try it once more. Make sure you're building the right one.

  • jkmajcen Profile Picture
    45 on at

    The model removed the objects from the AOT but I had to restart IIS to finally get the broken link I was expecting. Removing the menu item from the module was the final nail. Thanks.

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans