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,518

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

I have the same question (0)
  • 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
    Inge M. Bruvik Profile Picture
    1,161 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
    Inge M. Bruvik Profile Picture
    1,161 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
    97,970 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,161 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,046 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 932 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans