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:
- 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).
- Open the exported profile (xml file) with your favorite text editor (notepad++ is my favorite),
- Look for the value: Attribute value=”Departments”,
- Select and delete the node that contains this attribute (see image below),
- Save the modified xml file,
- Delete you profile from NAV,
- Import the modified xml file to NAV,
- Check and enjoy your “restored” 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
Pingback: How to: Remove/Restore Departments Button - Microsoft Dynamics NAV Community
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?
Hi Max,
First, try to export other profiles and see if you can export them correctly. Let me know where that leads you ๐
Brilliant, thank you so much. Now I would just like to know why couldn’t Microsoft tell me that when I asked them a few years ago?
Hello Paul,
Yes that is an excellent question. Sometimes Microsoft Support Team needs support ๐
Fortunately NAV Community is great.
Hi.
It doesn’t seem to work.
Just like Max, when exporting the profile the Department string is missing.
A brand new profile doesn’t export Department string either.
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.