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

Announcements

News and Announcements icon
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
    159 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
    159 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
    101,995 Super User 2026 Season 1 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
    101,995 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,081 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,351 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,168 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans