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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get opening balance for a month

(0) ShareShare
ReportReport
Posted on by 165

Hi All,

Could someone help me how to get opening balance for a month?

Thanks,

Silvester


I have the same question (0)
  • Suggested answer
    Ramit Paul Profile Picture
    22,799 Most Valuable Professional on at

    Hi,

    Kindly go to general ledger- Inquires and reports- trail balance- run the trial balance- check your required main account- see the opening balance.

    Please let us know if this helps or provide more info.

  • josephsilvester Profile Picture
    165 on at

    Hi,

    Iam checking through postman and would like to get the balance using any Entities . Currently Iam able to retrieve transactions. But it do not have opening Balance.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi joseph,

    The opening balance is defined on the period that you select.

    If you select for example the period 1st September to 30 September then the opening balance is made of the accumulated transactions up the 1st September.

    In case you select a different period then this principle is applied likewise.

    If you plan to do the calculation of opening balances outside of D365FO then be careful about a couple of things, such as the nature of the account - P&L accounts do not have an beginning of the year opening balance - the period selected and alike.

    Best regards,

    Ludwig

  • josephsilvester Profile Picture
    165 on at

    Hi Ludwig,

    Thanks for the replay. If Iam using 1st September to 30 September is it possible to get the closing balance of August such that I can add that to September balance  using any Entity ?

    Thanks,

    Silvester

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Silvester,

    It's not possible to get such kind of data through entity. I recommend to take a look at oData action or web service.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Silvester,

    Unfortunately, this is not possible.

    I also think that oData is not really an option because it is most probably too slow for the volume of data that you record. Also, we don't have an entity for exporting accounting related posting data.

    Is the use of the financial reporter an option?

    This tool has all features available to calculate opening balances as you like.

    Have you tried that tool?

    Best regards,

    Ludwig

  • josephsilvester Profile Picture
    165 on at

    Hi Sergei,

    Can you please post a sample how to use OData for this.

    Thanks,

    Silvester

  • josephsilvester Profile Picture
    165 on at

    Hi Ludwig,

    I want get the balance using my script.

    Thanks,

    Silvester

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Silvester,

    For oData action you will need to create a new method on the entity (please note that CoC doesn't work in this case and you need to use existing entity you have access to or to create a new entity just to store oData action). To be honest, I'm not sure about the response message size limitation, but there are are some limitations for the request message.

    [
            Hookable(false),
            SysODataActionAttribute("MyOdataAction", false),
        ]
        public static str myOdataAction(..parameters..)
        {
            // do some code based on parameter
            return ..result you want
        }

    Sometimes it's much easier to implement web service instead of OData, as oData action has few limitations, and web service can be consumed as JSON service.

    For web-service examples, you can check the Service\Services node in Application Explored in VS.

    docs.microsoft.com/.../odata

    docs.microsoft.com/.../custom-services

  • josephsilvester Profile Picture
    165 on at

    Hi Sergei,

    I want to use OData to get the Balance as Updating code  for each client is not feasible. My plan is if I can get the opening balance of a month I can add that to the sum of credit and debit.

    Thanks,

    Silvester

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans