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 :
Small and medium business | Business Central, N...
Unanswered

API itemLedgerEntries Endpoint

(0) ShareShare
ReportReport
Posted on by 5

Successfully loading data into on prem SQL.  Trying to query against data but there seems to be a corresponding debit and credit for each transaction and no way to discern which is the original transaction.  Set up a window function to partion by postingDate and itemNumber but it fails when there are multiple entries on the same date.  You can't select negative values because occasionally office does reverse transfers.

Is there another endpoint that might add information?

Any direction is most appreciated. 

pastedimage1675468821849v1.png

  • Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at

    Did you check Entry Type and Document Type?

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

    For a transfer there will always be a negative and a positive transaction. But for other transactions you will have negative or positive transactions only. Did you filter on the tranType?

  • Russ Matsenbaugh Profile Picture
    5 on at

    Entry Type is Transfer on all records.

    Document Type is Transfer_x0000_Shipment or Transfer_x0000_Receipt.

    There are no discernable differences between the records that allows me to identify the correct record.

    Wondering if there is something hidden inside the id as the RIGHT(id, 27) appears to be the same for each record set.

  • Russ Matsenbaugh Profile Picture
    5 on at

    Yes, the image displayed is filtered by tranType = 'Transfer'  

    *fyi: this field corresponds to the API field entryType

    My issue is that it produces two records and there is no way to select the correct one.  It seems that the first record is always the one I want so I wrote a window function to select the Top 1.  That falls apart when there is more than one transfer for the same product on the same date.

    I also have this connected to a PowerBI Report and I can look at the full dataset for this table.  Many of the most useful fields are missing from the API endpoint.

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

    If you are analysing transfer, then you need both transactions to get the complete picture.

    What is the reasoning for only looking at one side of a transfer?

    And how to do you define what is the correct part of a transfer to look at?

  • YUN ZHU Profile Picture
    103,773 Super User 2026 Season 2 on at

    Hi, Can the "Positive" field help you?

    pastedimage1675645463488v1.png

    Thanks.

    ZHU

  • Russ Matsenbaugh Profile Picture
    5 on at

    That is not an available field in the itemLedgerEntries endpoint.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 727 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 512 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 321 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans