Skip to main content

Notifications

Announcements

No record found.

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 40

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".

  • phkGZ Profile Picture
    phkGZ 40 on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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

  • Suggested answer
    Vaishnavi J Profile Picture
    Vaishnavi J 3,058 on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,317 Moderator on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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?

  • phkGZ Profile Picture
    phkGZ 40 on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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
    phkGZ 40 on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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
    Vaishnavi J Profile Picture
    Vaishnavi J 3,058 on at
    RE: How do you get the "closed at date" field from the customer entries table?

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans