Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Dimension values returns in the rest API are less than what we have in Business Central

Posted on by 9

Hey there! 

I'm integrating Business Central with my software [HR], the integration functionality is to send the payroll transactions from my software to business central as journal entry. 

The problem I'm facing is that when I hit the API to get the list of dimension values for a specific dimension it shows less results, I mean the list of values comparing to what I have in business central is very less I have 52 values, but what I'm getting is only 6 values.

This is the API: api.businesscentral.dynamics.com/.../{{environment}}/api/v2.0/dimensions(69572523-df3a-ed11-bbae-6045bd8e554a)/dimensionValues

 

  • Add to Phrasebook
    • No word lists for English → Arabic...
    • Create a new word list...
  • Copy
  • Add to Phrasebook
    • No word lists for English → Arabic...
    • Create a new word list...
  • Copy
  • Suggested answer
    Community member Profile Picture
    Community member 26 on at
    Dimension values returns in the rest API are less than what we have in Business Central
    Hi All, I think we identified the solution for this issue, please have a look: Solved: Dimension values returned by API are less (dynamics.com)
     
    Thanks
  • Community member Profile Picture
    Community member 26 on at
    Dimension values returns in the rest API are less than what we have in Business Central
    Hi @Hussin Saeed, have you found a way to resolve this issue? It looks like we're experiencing the same problem, see: https://community.dynamics.com/forums/thread/details/?threadid=2a243f28-20ec-ee11-a204-000d3a574715
     
    Many thanks in advance
  • Hussin Saeed Profile Picture
    Hussin Saeed 9 on at
    RE: Dimension values returns in the rest API are less than what we have in Business Central

    Yes, company and environment values are correct.

    However other APIs like the accounts list API is working fine, it returns all the accounts.

    I'm not sure if there is something in the configuration I need to look at

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,533 Super User 2024 Season 2 on at
    RE: Dimension values returns in the rest API are less than what we have in Business Central

    Hi, I did a simple test and didn't encounter your problem.
    Please confirm whether the environment and company values in the endpoint are correct.

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox221/api/v2.0/companies(25333785-59e9-ed11-884d-6045bde998ec)/dimensions(ea622016-56f0-ed11-8848-6045bd67d7ed)/dimensionValues

    pastedimage1684976957670v2.png

    Hope this helps.

    Thanks.

    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

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

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,126 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans