web
You’re offline. This is a read only version of the page.
close
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...
Answered

Trying to import invoices using configuration package

(0) ShareShare
ReportReport
Posted on by

We are new to Business Central and looking for some guidance with configuration packages. We would like to import invoices from Excel, but don't see what ties the header and the lines together. We don't have any of the required internal identifiers. Can we use the supplied invoice number to link them, even though the system will assign new identifiers?

thanks,

Dgray

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    You can use the existing number you just need to patch up the rest of the missing parts.

    Tables included will be 38 and 39. 38 is the parent table and the unique reference to an entry is “Document Type”, “No.” so for you this is Invoice and your existing no. 39 then uses this logic “Document Type”, “Document No.”, “Line No.”, so for you that is Invoice, existing invoice no. and possible a number you have for the details of the invoice. If you don’t have one then use a value. BC typically starts line numbers at 10000 and goes up in ten thousands. You don’t have to stick to this but it’s standard for a reason.

    Note that you have to post the invoices again as opposed to importing them straight to the posted invoice tables which have different table id references.

    If this method is still not working out you can revert to a 1 dimensional structure. Use the purchase journal and entry 1 line per invoice for the total value with the corresponding dates. If you have an attachment use the incoming document feature. Balance it to the accounts payable control account.

  • Suggested answer
    Anks27 Profile Picture
    1,085 on at

    Hello,

    Relation between header and lines in business central as per below.

    Document Type and Document number Both filed are available in header and Line level table so whenever you import Data from configuration package it will automatically map between header and lines level data because of two fields.

    Config1.png

    Config2.png

    Config3.png

    if you want add manual number in invoice then you have to enable option in number series.

    Config4.png

    Signed, Sealed and Delivered.

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

  • Community Member Profile Picture
    on at

    Thanks guys. This definitely helps.

    We were trying to let the system automatically assign invoice numbers from a manual import spreadsheet. Then we could manually assign temporary numbers instead of knowing what the next available number would be. We don't want to accidentally update instead of import because we manually assigned the same number in two import spreadsheets. Is there a standard solution to that?

    Same issue on a vendor invoice. We have their external reference number that we could use to match header and line, but don't want that to become our internal number when it is imported.

  • Suggested answer
    Anks27 Profile Picture
    1,085 on at

    Hello,

    To assign Number Automatically from Excel sheet, you need to Enable Default number series from No.series page.

    NO-series.PNG
    For vendor invoice, use Document Type and Document Number to manage relation between header and line.

    Signed, Sealed and Delivered.

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans