Skip to main content

Notifications

Community site session details

Community site session details

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

Editable to be true for 2 or three users only how can we achieve in Business Central?

(0) ShareShare
ReportReport
Posted on by 65

Hi, 

I have requirement for editing some field only for three or 4 users.

I know i can use personalization and security filter but it has multiple permission given to user which will overwrite the security filter

how can I achieve this using customization?

:) Thanks for your help.

  • Suggested answer
    YUN ZHU Profile Picture
    81,415 Super User 2025 Season 1 on at
    RE: Editable to be true for 2 or three users only how can we achieve in Business Central?

    Hi, just adding some simple examples.

    https://yzhums.com/25886/

    https://yzhums.com/14752/

    https://yzhums.com/15210/

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Editable to be true for 2 or three users only how can we achieve in Business Central?

    More refine code on top of Vaishnavi Joshi

    trigger OnOpenPage()

    var

    Rec_UserSetup: Record "User Setup";

    begin

    Clear(Rec_UserSetup);

    Rec_UserSetup.get(UserId);

    CheckEditable:= Rec_UserSetup.AllowEditable // AllowEditable is boolean field in User setup table.

       end;

  • Suggested answer
    Vaishnavi J Profile Picture
    3,058 on at
    RE: Editable to be true for 2 or three users only how can we achieve in Business Central?

    Hi,

    you can create a boolean field in user setup.
    set it true.
    Then write this trigger onOpen Page

    layout
    {
    area(content)
    {
    group(General)
    {
    field("Name", Rec."Name")
    {

    Editable = CheckEditable; //Assign the value to editable property of field
    }
    }
    }
    }


    trigger OnOpenPage()
    var
    Rec_UserSetup: Record "User Setup";
    begin
    Clear(Rec_UserSetup);
    Rec_UserSetup.Reset();
    Rec_UserSetup.SetRange("User ID", UserId);
    if Rec_UserSetup.FindFirst() then
    CheckEditable:= Rec_UserSetup.AllowEditable // AllowEditable is boolean field in User setup table.
    else CheckEditable:= false;

    Var CheckEditable : Boolean // Global field

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,125 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans