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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Restrict viewing on Unit cost on Item card

(4) ShareShare
ReportReport
Posted on by 373
Hi All
 
Any suggestions on how to restrict a user from the viewing the Unit cost and last direct cost fields on the item card
 
Many thanks
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,545 Most Valuable Professional on at
  • Suggested answer
    OussamaSabbouh Profile Picture
    10,875 Super User 2026 Season 1 on at
    Hello,
     
    You cannot hide Unit Cost / Last Direct Cost with permissions alone.
    You must hide the fields with a page extension (modify → Visible = false).
    That’s the only practical way to prevent users from seeing item costs.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    Shyam Gurjar (BC Tech) Profile Picture
    5 on at
    Either you need to hide it from Page Personalize way. Or If you want only some users can see it and others can't then below are the steps you can perform:
    1. Make a Boolean Field in User setup (Ex: View Item Cost)

    2. On Page Ext of Item Card. Make a Global Variable Called ViewField :Boolean;

    modify("Unit Cost")
    {
    Visible=ViewField;
    }

    trigger OnOpenPage
    var
    UserSetup:Record "User Setup";
    begin
    //Find your User in User Setup Table (Filtering)
    ViewField:=UserSetup."View Item Cost";
    end;

    Var //Global
    ViewField:Boolean;

    This will make it dynamically visiblle and can be controlled from User Setup for future perspective as well.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,491 on at
    Hii there. 
    as per requirement you can create a user setup extension field through that you can assign a boolean to assign permission to user .
    it will useful for your future developments also through that you can directly apply fields visibility as per user setup.
     
    If You found answer mark it answered.
    Thank you.
    Kamal Khakhkhar.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,155 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,043 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 955 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans