Skip to main content

Notifications

Community site session details

Community site session details

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

Trial balance by month BC API

(1) ShareShare
ReportReport
Posted on by 7

Hi guys, 

Is it possible to get the trial balance by month with the standard BC API? (Without having to use the General Ledger entries API)

Tried the Trialbalance API (Object ID 5502), but it only gives me the current date. 

Excel-PQ-output.png

ExcelTemplateTrialBalance.pngBC-WEB-services-API.png

  • Suggested answer
    YUN ZHU Profile Picture
    84,670 Super User 2025 Season 1 on at
    RE: Trial balance by month BC API

    Hi, As far as I know, this won't work because you're filtering differently each time.

    But you can group requests in collections.

    For example, in Post Man

    https://learning.postman.com/docs/sending-requests/intro-to-collections/

    Hopefully other experts can give you better advice.

    Thanks.

    ZHU

  • TobiasHolm Profile Picture
    7 on at
    RE: Trial balance by month BC API

    Managed to get it to work by invoking a custom function (Setup for my specific API) on a table with end dates of every month (text.format).

  • TobiasHolm Profile Picture
    7 on at
    RE: Trial balance by month BC API

    Hi Daniele and ZHU

    Thank you so much for your suggestions - with your input I managed to get the trial balance YTD for a given period.

    Is it possible to get the trial balance YTD for each month in 2022 in one API, without having to do 12 individual API´s? (As shown with examples below)

    Etc. January 2022: OData.Feed(XXXX/trialBalance?$orderby number&$filter=dateFilter ge 2022-01-01 and dateFilter le 2022-01-31", null, [Implementation="2.0"])

    Etc. January 2022-February 2022: OData.Feed(XXXX/trialBalance?$orderby number&$filter=dateFilter ge 2022-01-01 and dateFilter le 2022-02-28", null, [Implementation="2.0"])

    And so on until:

    January 2022-December 2022: OData.Feed(XXXX/trialBalance?$orderby number&$filter=dateFilter ge 2022-01-01 and dateFilter le 2022-12-31", null, [Implementation="2.0"])

  • Verified answer
    YUN ZHU Profile Picture
    84,670 Super User 2025 Season 1 on at
    RE: Trial balance by month BC API

    Hi, You can find out if it is available in the standard APIs, or the new reportsFinance APIs.
    If not, customization is required.

    Standard Apis:

    https://yzhums.com/22845/

    https://yzhums.com/6117/

    New dedicated APIs for financial reporting: 

    https://yzhums.com/29540/

    Hope this helps.

    Thanks.

    ZHU

  • Verified answer
    DAnny3211 Profile Picture
    9,278 Moderator on at
    RE: Trial balance by month BC API

    hi

    look this

    learn.microsoft.com/.../dynamics_trialbalance_get

    DAniele

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans