Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Accessing ledger account default dimension data through API

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,045 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans