Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Accessing ledger account default dimension data through API

(0) ShareShare
ReportReport
Posted on by 5

pastedimage1663824557491v1.png

This setup is accessed from the GL Account card (Account/Dimensions).

Trying to get this data returned through V2.0 API but am unable to find it.  Not in defaultDimensions endpoint which seems to have only default dimensions data for Customers, Vendors, Items etc but not G/L Accounts.

Is the data in the above screen accessible through the V2.0 API?

Thanks in advance.

  • Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: Accessing ledger account default dimension data through API

    Hi,

    Add default dimension page in G/L account page and publish the same page for achieving the above requirement.

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Steven Renders Profile Picture
    Steven Renders 5,051 Super User 2024 Season 1 on at
    RE: Accessing ledger account default dimension data through API

    Best is to create your own APIs, when the data you need is not available in the default APIs.

    learn.microsoft.com/.../

    learn.microsoft.com/.../devenv-query-object

    learn.microsoft.com/.../devenv-api-querytype

  • Suggested answer
    Vaishnavi J Profile Picture
    Vaishnavi J 3,056 on at
    RE: Accessing ledger account default dimension data through API

    Hi,

    Go to web services page in Business central

    Create a webservice page for Page ID 540 and use the ODATA url

    In the G/L Account add the dimension and its value and do get request on postman you would be able to see G/L Account values as well.

    pastedimage1663826009954v1.png

    pastedimage1663826080550v2.png

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.

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

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans