Skip to main content

Notifications

Announcements

No record found.

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

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
    YUN ZHU Profile Picture
    79,278 Super User 2025 Season 1 on at
    RE: Using a Configuration Package to Create a New PO Number

    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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    999 Moderator on at
    RE: Using a Configuration Package to Create a New PO Number

    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.

  • Ollie Profile Picture
    10 on at
    RE: Using a Configuration Package to Create a New PO Number

    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
    999 Moderator on at
    RE: Using a Configuration Package to Create a New PO Number

    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.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Using a Configuration Package to Create a New PO Number

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,983 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans