How to: Remove/Restore Departments Button

We all know that we can remove the Departments button from NAV Window Client (RTC). This subject was discussed many times on other blogs.

Here is an excellent post that describes this topic: https://saurav-nav.blogspot.fr/2013/04/configuring-profile-in-role-tailored.html

But what if you need to restore the Departments button? The answer you can get on internet is: Go to configuration mode and restore the profile to default. Unfortunately, if you apply this solution, you will lose all the personalization you already did (how many hours of hard working? ;))

Today, I will explain to you how you can restore the Departments button without losing your personalization.

The solution consists of few simple steps:

  1. Export the profile using Xmlport “Profile Import/Export” (ID 9170) and filter to your PROFILEID (or the action “Export Profile” on Profile Card/List for NAV 2017).
  2. Open the exported profile (xml file) with your favorite text editor (notepad++ is my favorite),
  3. Look for the value: Attribute value=”Departments”,
  4. Select and delete the node that contains this attribute (see image below),
  5. Save the modified xml file,
  6. Delete you profile from NAV,
  7. Import the modified xml file to NAV,
  8. Check and enjoy your “restored” Departments button.
How to_ Remove_Restore Departments Button

P.S: I tested this on NAV 2013, NAV 2013 R2, NAV 2015, NAV 2016 and NAV 2017. Apparently, Microsoft uses a unique ID for the Departments button {7AA351B2-CC3E-479f-9A0B-6BC0DD7A3158}. You may also use this ID to find the correct xml node.

This blog is available also on Microsoft Dynamics NAV Community

7 thoughts on “How to: Remove/Restore Departments Button”

  1. Pingback: How to: Remove/Restore Departments Button - Microsoft Dynamics NAV Community

  2. Thank you very much, this was exactly what I was looking for! I can’t get it to work, though, because if I export a profile (XML file) it has a size of 1KG and is almost empty (2 lines of text). How come?

  3. Hi Max,

    First, try to export other profiles and see if you can export them correctly. Let me know where that leads you ๐Ÿ˜‰

    1. Hello Paul,

      Yes that is an excellent question. Sometimes Microsoft Support Team needs support ๐Ÿ˜€
      Fortunately NAV Community is great.

    1. Hello Andrea,

      When you say “A brand new profile doesnโ€™t export Department string” ; that is absolutely correct. You’ll find the “Department string” only on profiles where the Departments button was removed.

      The test you may do is:
      1- remove the Departments button from a profile of your choice (of course the profile should originally have the Department button)
      2- export this profile
      3- check the “Department string”
      4- follow what I already explained in this post

      I just tested (again) on BC and it is working just fine.

      Do not to hesitate to share your valuable feedback.

Leave a Comment

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

Scroll to Top