Although it is not a very good method, you can get the Company name in the code and add a condition to make your code execute only in a certain company.
Dynamics 365 Business Central: Company Name, Company Display Name, and Company URL Name
How to make the extension company specific on production env
This is usually done by creating some sort of setup that actives, sets up, or makes the customization active. For example, if you're customizing something in the sales order page, create a boolean in the Sales & Receivables Page that turns on that customization. This way you can select to turn it on in a specific company, or set it up differently in each company. This should give you some ideas.
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.