Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Assign serial numbers to purchase order line via extension

(0) ShareShare
ReportReport
Posted on by 5

Trying to find a proper solution for assigning serial numbers to a purchase order line through extension or API method.
BC version is 19.3.0.2 on-prem.

Here is the extension method code:

1738.png

pastedimage1652952221636v2.png

In NAV, you would pass serial number directly into CreateReservEntry.CreateReservEntryFor method, like this:

pastedimage1652952265119v3.png

pastedimage1652952282067v4.png

But in BC, CreateReservEntry.CreateReservEntryFor method is changed, so you no longer can pass Serial No., but instead it is copied from ReservEntry:

Codeunit 99000830 Create Reserv. Entry

pastedimage1652952339972v5.png

Table 337 Reservation Entry

pastedimage1652952366587v6.png

So, the question is what would be the correct way to 'feed' Reservation Entry with serial nos. before executing CreateReservEntryFor?

Is there a method in Codeunit 99000830 Create Reserv. Entry or Table 337 Reservation Entry that can be utilized for this?

  • DmitriySozinov Profile Picture
    5 on at
    RE: Assign serial numbers to purchase order line via extension

    Hi Marco,

    Will try dynamicsuser.net then.

    Thanks.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Assign serial numbers to purchase order line via extension

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    www.dynamicsuser.net/.../14

    I will open this up to the community in case they have something to add.

    Thanks.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,996 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans