Can i get a list of entries from a specific Account by API?
Can i get a list of entries from a specific Account by API?
Hi, Because it's just Get,so using a Query Params, no header.
Do you filter through headers?
Hi, yes, try the following.
All general ledger entries:
https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/generalLedgerEntries
Fitler accountNumber
https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Preview20/api/v2.0/companies(c32dda04-259a-ec11-bb89-6045bd8e52fe)/generalLedgerEntries?$filter=accountNumber eq '2110'
More details about standard Apis: https://yzhums.com/6117/
Hope this will help
Thanks.
ZHU
For web services to be published through the database UI is the best option.
The one I’m referring to is published by default. Adapt the following to fit:
api.businesscentral.dynamics.com/.../G_LEntries
Substitute YourTenantID and the company value.
Would it be able through database? If you can access it :)
If the standard endpoint only allows a single entry you may want to try publishing a web service instead. Doc on the standard api: docs.microsoft.com/.../dynamics_generalledgerentry_get
Failing that there is a query object in the web services page that is worth trying
André Arnaud de Cal... 291,642 Super User 2024 Season 2
Martin Dráb 230,371 Most Valuable Professional
nmaenpaa 101,156