Hello,
I have a request from a client that wants to be able to apply customer ledger entries via an API. Has anyone had experience with this before? My idea was to create a Customer Ledger Entry Buffer table to send the records to via an API, but having some trouble figuring out how to get those posted to the Customer Ledger Entry table.
Any help would be appreciated. Thanks!
Hi @Brian_Schmidt,
You have to create a bound action in the API page (Creating and Interacting with an OData V4 Bound Action - Business Central | Microsoft Learn) to call after the buffer record is created. In this case, this buffer table can’t be temporary.
I would name this table as “API Application Log” (it’s more like a log than a buffer). You must see as Business Central applies customer ledger entries looking at the page “Apply Customer Entries”, in fact, the process is done by “Apply” procedure in “CustEntry-Apply Posted Entries” codeunit.
Best regards.
Thank you very much for the advice. I’ll give this a shot!