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

Hidden an Sales Order action for specific role

(0) ShareShare
ReportReport
Posted on by 373

Hi Community,

Could you help me with this:

I create a new role in BC, but in this case the user that will be working in this role, he will have not permission to Post  sales order, my inquiry is how I can lock or hide this action for specific role and user?

pastedimage1681312119935v1.png

Thank you for your time.

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

    You can achieve it with the permission sets by removing access to the post.

    pastedimage1681312440007v1.png

    Or you can go to the profiles and customize the sales order page to hide the post actions.

    pastedimage1681312497341v2.png

  • Suggested answer
    Vaishnavi J Profile Picture
    3,094 on at

    Hi,

    You can create a boolean in user setup page and whenever the boolean is true then in your onopen page trigger use the below logic of sales order card page extension

    Var IsAccessible: boolean // declare a global variable

    //To get the user and which user is able to see post action

     trigger OnOpenPage()
        var
            Rec_User: Record "User Setup";
     
     begin
    IsAccessible:=false;
            Clear(Rec_User);
            Rec_User.Reset();
      Rec_User.SetRange("User ID", UserId);
            if Rec_User.FindFirst() then begin
                IsAccessible:= Rec_User.IsAccessible;  // if the IsAccessible value is true meaning that user is able to see Post action
    end;
     
    //write the code in sales order card page extension
    Modify
    {
    Action(Post)
    {
    visible=IsAccessible;  
    }
    }
    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.
  • Manuel Lozada Profile Picture
    373 on at

    Hi Vaishnavi,

    I try follow your instructions but "User Setup" does not contain a definition for IsAccessible because is a global variable.

    Could you said me how I can fixing and how assigned the user.

    thank you

    IsAccessible:= Rec_User.IsAccessible;

  • Suggested answer
    Vaishnavi J Profile Picture
    3,094 on at

    Hi

    In your User Setup page create a boolean field called as IsAccessible and after creating that field in User Setup table and page extension.

    Then in the Business Central User Setup page just select this boolean to be true whichever user needs to be shown the post action.

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

  • Suggested answer
    YUN ZHU Profile Picture
    99,416 Super User 2026 Season 1 on at

    Hi, If you don't need to set conditions, you can easily remove them by using the Customize Pages function on the Profile page.

    pastedimage1681357081149v1.png

    pastedimage1681357124521v2.png

    Hope this helps.

    Thanks.

    ZHU

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,711 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 998 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 635 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans