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...
Suggested Answer

How do you get the "closed at date" field from the customer entries table?

(0) ShareShare
ReportReport
Posted on by 44

I need to find this field, in order to calculate our average "days late" in customer payments.

In old NAV I could just take a copy of table 21 (customer ledger entries), and the field is there.


But in BC; it's missing. If I pull the odata for table 21, a lot of other fields are there, but not closed at date. I have tried to check all the tables I can that are available, like "applied customer entries" but none have "closed at date".

I have the same question (0)
  • Suggested answer
    Vaishnavi J Profile Picture
    3,096 on at

    Hi,

    In CLE table there is Closed at date. You cannot see in the page itself but it is in table of CLE. If you check on Inspection page of CLE you can see Closed at Date.

    You cannot add this field Closed at date in CLE page using personalize method but if you are working on sandbox use design option to get the field in the page.

    If you want this field in CLE page in production then you need to set the visible true for this field by writing a piece of code.

    pastedimage1663923176958v1.png

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.

  • phkGZ Profile Picture
    44 on at

    Hi

    If it's part of CLE how come it does not download as part of the CLE ODATA file? I have not come across that problem before, where it only downloads an incomplete portion of the underlying dataset.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    I am not sure what API you use to pull the customer ledger entries. 

    But if the API is not providing you the data you need you can create your own custom API and make sure the needed fields show there.

    learn.microsoft.com/.../devenv-develop-custom-api

  • phkGZ Profile Picture
    44 on at

    Hi Inge. I'm using the standard one - but I have also tried to create my own dataset. Based on object 25 (customer ledger entries), I can select from exactly the same set of fields as are included in the standard API.

    But "closed at date" is missing :-(

    I suspect "closed at date" is part of another object, but I can't find which one. I have tried a number of them without success.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    It is not a part of another object. It is part of table 21. And its field no. 45. It is not even a flow field.

    field(44; "Closed by Entry No."; Integer)

            field(45; "Closed at Date"; Date)

           {

               Caption = 'Closed at Date';

           }

    Can you share the code for your API?

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    If you are using Custom API page, then you have to show that field into that same page and again call the OData API.

    Thanks.

  • Suggested answer
    Vaishnavi J Profile Picture
    3,096 on at

    Hi,

    If you are creating your own custom API you can add closed at date. Refer the below screenshot.

    pastedimage1663926366862v1.png

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.

  • phkGZ Profile Picture
    44 on at

    Hi! Thanks for the help. Seems the only solution is to create a custom API.

    My API link looks like this:

    https://api.businesscentral.dynamics.com/v2.0/MyTenantID/Production/ODataV4/Company('My Company')/Debitorposter_Excel

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