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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to get all General Ledger Entries from a Account

(0) ShareShare
ReportReport
Posted on by 11

Can i get a list of entries from a specific Account by API?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    If the standard endpoint only allows a single entry you may want to try publishing a web service instead. Doc on the standard api: docs.microsoft.com/.../dynamics_generalledgerentry_get

    Failing that there is a query object in the web services page that is worth trying

  • Frederik Boelskifte Profile Picture
    11 on at

    Would it be able through database? If you can access it :)

  • Suggested answer
    JAngle Profile Picture
    133 on at

    For web services to be published through the database UI is the best option.

    The one I’m referring to is published by default. Adapt the following to fit:

    api.businesscentral.dynamics.com/.../G_LEntries

    Substitute YourTenantID and the company value.

  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

    Hi, yes, try the following.

    All general ledger entries:

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/generalLedgerEntries

    pastedimage1650930469794v1.png

    Fitler accountNumber

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/generalLedgerEntries?$filter=accountNumber eq '2110'

    pastedimage1650930573955v2.png

    More details about standard Apis: https://yzhums.com/6117/

    Hope this will help

    Thanks.

    ZHU

  • Frederik Boelskifte Profile Picture
    11 on at

    Do you filter through headers?

  • Verified answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

    Hi, Because it's just Get,so using a Query Params, no header.

    pastedimage1651014854370v1.png

    pastedimage1651014884357v2.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans