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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

How to use one extension for two Country/Region without modify the fields.

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I have created a app for UK and Denmark. But I found some of the field in table are different. I have created some pages and expose as web service to return information for sales order and posted sales invoice. But When I build through UK and create the app. I found I couldn't install this app in Denmark environment. I guess could use the field only apear in both of UK and DK.

1.But I was wondering is that possible to support  UK and DK at same time without delete the conflict fields?

2.I'm trying to write the the conflict fields as local variable and choose or assign value for these local variable based on the Country/Region information from the environment that the extension installed. Is that possible to get the Country/Region information dynamically?

Thanks in advance!

Categories:
I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Ok, Thank you so much.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    If a localization has a table A that is not present in localization B and your code references table A, you receive an error when you try to deploy this app on a tenant with localization B. You can create a dependent extension for supporting the missing parts for the other localization for example (just in order to reuse the code).

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans