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...
Suggested Answer

Using a Configuration Package to Create a New PO Number

(1) ShareShare
ReportReport
Posted on by 3,540

Hi:

We have created a Configuration Package for tables 38 and 39.  It works for importing data already containing a Purchase Order number.

But, we want the ability to import this data to create new Purchase Order numbers.

So, we have tested leaving that field blank in the Excel source files for both tables.

Obviously, this doesn't work.

Can Configuration Packages be used to create new transaction numbers like this?

Thanks!

John

  • Suggested answer
    Community Member Profile Picture
    on at

    John,

    I am not a programmer, but have an idea... why not include the PO Number in the Import that is a specific PO Number Series. Then whomever is responsible for this just adds the next Number range to the Import file before importing.

    Just a thought.

    Thanks,

    Steve

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

    Good suggestion you got from Steve there.

    Because you are importing both head and lines they need to be assigned a number before you can do the import.

    Because the purchase header no. is a part of the primary key on the lines.

  • Ollie Profile Picture
    10 on at

    hi John,

    did you manage to come up with a solution for this as i am looking to do the same and getting the same issues?

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

    If it is a regular import you are doing you should look at using a xml port instead of the config. packages.

    So may disagree with me, but i think they work best for one time imports.

  • Suggested answer
    YUN ZHU Profile Picture
    104,204 Super User 2026 Season 2 on at

    Hi, when using Configuration Package to import data, you must have a primary key. If the value of the primary key already exists, the record will be modified. If the value of the primary key does not exist, new data will be inserted. 

    pastedimage1656370444871v1.png

    So, I don't think this can be done with Configuration Package.

    But it is possible if customized.
    Below is an example of importing Sales Order. I think it can be slightly modified to automatically get the value from No. Series. I hope it can give you some hints.

    https://yzhums.com/4223/

    Hope this helps.

    Thanks.

    ZHU

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 545 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans