Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

API settings to return localized column names

Posted on by 5
I am using Power Query to get data from BC. The user language is Danish.
 
This request return desired data. I can add filtering a.o. to the url:
OData.Feed(sUrl, null, [Implementation='2.0'])
By adding a header I can get localized (Danish) content:
OData.Feed(sUrl, null, [[Implementation='2.0'], Headers=[#'Accept-Language'='da-DK'])
Values are now in Danish (ex. 'køb' (purchase), 'faktura' (invoice),...) but field names (column names) remain the same.
I want to have 'Bogføringsdato' (not 'Posting_Date') , 'Beskrivelse' (not 'Description') so column names are the same as in the web interface.
 
How can this be done?
Categories:
  • BE50 Profile Picture
    BE50 5 on at
    API settings to return localized column names
    Thank you YUN ZHU for testing this also. Here are the language differences when using chart of accounts (=kontoplan in Danish).

    In web ui: Danish column names, Danish content
     
    When exporting to Excel: Danish column names, Danish content
     
    When loading into Power Query without headers: No Danish.
     
    When loading into Power Query with Headers=[#"Accept-Language"="da-DK"]: System column names, Danish content.
     
    I have tried adding other headers with no success. Can it be done? Is it by design? Is it a bug? Or must I add a renaming step in PQ?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    API settings to return localized column names
    Hi, I briefly tested French. It does have this problem, I'm not sure if it's a standard bug or not.
     
    Hopefully other experts can give you better advice.
     
    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans