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

Community site session details

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

Extension Visibility Issue in Business Central

(1) ShareShare
ReportReport
Posted on by 65
I have three companies in the business central production environment. I have been assigned to add some additional features in Company 1. I have made an extension for Company 1. The changes caused by the extension made for Company 1 must not be seen in either Company 2 or Company 3.

However, when I upload the extension file, the changes made in Company 1 show up in Company 2 and Company 3. 

Can anyone help me make the extension I made visible only in Company One and not in the other two companies? I am a newbie, so please guide me through this if possible.

(For Example, the extension I have created will create two new fields in the sales order page, which is necessary for company 1 but not needed for company 2 and company 3, so I don't want the two fields created using the extension for company 1 to show up in company 2 and company 3)
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,357 Super User 2025 Season 2 on at
    Extension Visibility Issue in Business Central

    Hello, You cannot set an extension for a specific company . Its per database.

    We can use the DataPerCompany property in a table to specify that the data will only be visible within a specific company. However, this property applies solely to the table itself.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-datapercompany-propert

     

  • Suggested answer
    Mohana Yadav Profile Picture
    60,969 Super User 2025 Season 2 on at
    Extension Visibility Issue in Business Central
    You can add a boolean in ex: company information page and add the condition in all the code changes to execute the code only if that boolean is enabled.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,357 Super User 2025 Season 2 on at
    Extension Visibility Issue in Business Central
    Please try using the code provided below. Remember to change the company name based on the name in your production account.
     
     
    pageextension 50704 "Sales Order Subform Ext" extends "Sales Order"
    {
        layout
        {
            addafter(General)
            {
                group("Lease")
                {
                    ShowCaption = false;
                    Visible = isVisible;
     
                    field("Lease Status"; Rec."Lease Status")
                    {
                        ApplicationArea = All;
                        Caption = 'Lease Status';
                    }
     
                    field("Lease Amount"; Rec."Lease Amount")
                    {
                        ApplicationArea = All;
                        Caption = 'Lease Amount';
                    }
                }
            }
        }
        trigger OnOpenPage()
        begin
            if companyInformation.Get() then
                case companyinformation.Name of
                    'CRONUS IN': //Company 1 name
                        isVisible := true;
                    'My Company'://Company 2 name
                        isVisible := false;
                    'My Company US'://Company 3 name
                        isVisible := false;
                end;
        end;
     
        var
            isVisible: Boolean;
            companyinformation: Record "Company Information";
    }
  • Suggested answer
    Gerardo Rentería García Profile Picture
    23,590 Most Valuable Professional on at
    Extension Visibility Issue in Business Central
    Hi
    What our colleagues have said about the impact on all companies is correct. Why Extension Installation Applies to All Companies in the Same Database in Microsoft Dynamics 365 Business Central
    You could also use the following link to set some business rules for one company or another.
    Best
    GR
  • Verified answer
    YUN ZHU Profile Picture
    93,222 Super User 2025 Season 2 on at
    Extension Visibility Issue in Business Central
    Just adding some information.
    Dynamics 365 Business Central: Dynamic Visibility of Controls (Hide and show fields dynamically)
     
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,828

#2
Sumit Singh Profile Picture

Sumit Singh 2,617

#3
YUN ZHU Profile Picture

YUN ZHU 1,861 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans