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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Custom entity creation for TB

(0) ShareShare
ReportReport
Posted on by 12

Hi there,

I'm having a requirement to expose the data we're seeing in Trial balance, so could you provide your assistance on how to create the custom entity with relations so that we can able to expose the data's for below headers we're having in TB reports? 

pastedimage1661871324182v1.png

I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,950 Super User 2026 Season 1 on at

    Hi Vignesh,

    Trial balance report will run once you provide a value for date, financial dimension set and posting layer.

    pastedimage1661873432709v1.png

    You have possibility to create this report in your reporting solution (e.g. PowerBI) by exporting data from standard entity "General journal account entry" or "General journal account entry reporting".

  • VV-22040800-0 Profile Picture
    12 on at

    Hi Alireza,

    Standard entity 'General journal account entry' public visibility is 'No', hence i'm trying to create the similar type of custom entity and making it public 'yes', need assistance on how to compute the opening/closing balance values as like we're getting in TB reports and make it available through custom entity expose.

  • VV-22040800-0 Profile Picture
    12 on at

    Any input on this?

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,950 Super User 2026 Season 1 on at

    Hi Vignesh,

    Opening/closing balance can be calculated dependent on date and financial dimension though it can have dynamics filter. Once you export data from LedgerJournalAccountEntry to your AzureSQLDB you have possibility to build a cube to calculate trial balance based on specified date and financial dimension.

    Do you want to create a custom entity by hard coding date interval (e.g. Trail balance 2021)?

  • VV-22040800-0 Profile Picture
    12 on at

    Hi Alireza,

    We're implementing OData integration and hence creating custom entity for Trial balances, so i'm trying to define relations and compute the opening/closing balances on entity level

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,950 Super User 2026 Season 1 on at

    Hi Vignesh,

    Like you mentioned already GeneralJournalAccountEntry entity is not public so you can not access it via ODATA, while you can make copy of this entity (i.e. create a custom entity) and make it public in order to use it for reading via ODATA.

    Please check the following post from Microsoft docs on how to create a custom entity and use standard OData syntax to retrieve data

    docs.microsoft.com/.../build-consuming-data-entities

    docs.microsoft.com/.../create-entities

  • VV-22040800-0 Profile Picture
    12 on at

    Hi Alireza,

    We already done with creating custom entity and can able to retrieve data from outside FO through OData call, challenge is we don't have direct field for opening balance and closing balance and hence we can't expose it, so we need to create computed field which should show the opening/closing balance and credit/debit details as we're seeing in TB reports, so need assistance in defining the required relations between datasources to achieve this.

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,950 Super User 2026 Season 1 on at

    Hi Vignesh,

    I think that you may need to create a custom entity for your purpose by adding formula to calculate balance and then you can add query call when you get data from the entity.

    I recommend to add a cube in your reporting solution to calculate trail balance than via OData entity so the user can decide over date interval or/and financial dimensions.

    Have you tried to use filter expressions in OData URIs?

    docs.microsoft.com/.../use-filter-expressions-in-odata-uris

  • VV-22040800-0 Profile Picture
    12 on at

    Hi Alireza,

    Could you guide how to add cube? can we add this custom entity level?

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,950 Super User 2026 Season 1 on at

    Hi Vignesh,

    As an example, you can try to use standard entity "General journal account entry" from D365FS to AzureSQLDB and then connect PowerBI to AzureSQLDB to get the data.

    Please check following post from Microsoft docs on how to create a cube:

    docs.microsoft.com/.../walkthrough-creating-a-cube

    docs.microsoft.com/.../walkthrough-displaying-cube-data-in-a-report

    docs.microsoft.com/.../walkthrough-analyzing-cube-data-in-microsoft-sql-server-management-studio

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans