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

Reservation entries via API

(2) ShareShare
ReportReport
Posted on by 16
Hi, 
 
We have an integration to BC where orderadministrators enter their sales orders.  
 
This works very well until we start using reservations managed by BC.  
 
What happens is that the API runs item tracking management insert reservation entry surplus.  but when the sales lines is updated to "reserve always" things get tricky.  
 
We get 2 reservation entry lines + a surplus entry.  The consolidation of surplus and reservation entry source typ 37 doesn't happen which should also update reservation entry source typ 32. 
 
What ever happens onclosepage of the item tracking lines seems to be impossible to replicate?  the surplus line feels hard coded or as if it gets entered but not fully finished in the process. 
 
I'm not a developer, and the ones i've spoken to do not actually know what happens in that specific instance.  And i'm certain that it's the api is the issue since i can do the full workflow in BC where everything ends up in 2 reservation entries.  
 
Anyone who's got a solution for this?  
 
What i want to acomplish is 
 
1. Enter sales line + item tracking line
2. Reserve from item ledger entry 
3. Post pick. 
 
All item trackinglines is for Lot numbers. 
 
Best regards Marcus 
 
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    17,956 Super User 2026 Season 1 on at
    Hello Marcus,
    This is a very sensitive area in BC, and I would avoid trying to create/update Reservation Entry records directly through API logic; Microsoft’s design shows that item tracking and reservations are not just simple table inserts — the Item Tracking Lines page works with temporary Tracking Specification data and the final reservation structure should end as a reservation pair in table 337, normally one demand line from Sales Line / Source Type 37 and one supply line from Item Ledger Entry / Source Type 32. The extra Surplus entry usually means the tracking/reservation process was started but not fully finalized the same way the standard UI flow does it. My recommendation is to create the sales line through API, but handle “assign lot + reserve from item ledger entry” through a small custom API/codeunit that calls the standard BC reservation/item tracking logic server-side, instead of trying to mimic what happens on OnClosePage or inserting reservation entries manually. In short: not a warehouse/pick issue first; fix the reservation/item tracking creation path, then release/create/post the pick.
    Regards,
    Oussama Sabbouh

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 1,237 Super User 2026 Season 1

#2
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 788 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 759 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans