Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Importing invoices and related invoice details

(0) ShareShare
ReportReport
Posted on by 5

Is there a way to import new invoices and the related invoice details into Dynamics 365 Sales Enterprise online? We are trying to find a way to import thousands of transactions at a time for donations where invoices don't exist yet.

  • EricOwens Profile Picture
    5 on at
    RE: Importing invoices and related invoice details

    Yes, I downloaded the templates and used them. The Invoice ID error I was receiving was from the details file and not the invoice file. I mapped the Invoice ID on the details file to another field which worked. Thank you for the help!

  • Community Member Profile Picture
    on at
    RE: Importing invoices and related invoice details

    Hi EricOwens,

    Have you downloaded Invoice template to import from CRM?

    pastedimage1635410878852v1.png

  • EricOwens Profile Picture
    5 on at
    RE: Importing invoices and related invoice details

    I still get the error "invalid argument. Required field Invoice Id is missing".

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Importing invoices and related invoice details

    Hi EricOwens,

    The invoice ID column can be generated automatically by CRM, you don't need fill it manually.

    So you just make the specific field(any filed you want) that mapping to the invoice details is unique.

  • EricOwens Profile Picture
    5 on at
    RE: Importing invoices and related invoice details

    This looks promising, but these examples are a little different than what we are trying to do. In these cases you are importing accounts and contacts, which you already know the names of. I am importing invoices that don't have an invoiceID yet so how do you reference the invoice details to the invoices? Do I need to create new fields with foreign keys or something like that?

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Importing invoices and related invoice details

    Hi EricOwens,

    Indeed, if you import invoices and the related invoice details records separately,you will get the error ‘The lookup reference could not be resolved‘.

    Now, in order to handle such scenario, best and the most simple way is to import this together through selecting both files and adding them to a zip file.

    You can refer following links for more details:

    accounts and contacts import | D365 Demystified

    How to Import Related Records in Microsoft Dynamics 365 (c2software.com)

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Holly Huffman Profile Picture

Holly Huffman 103

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 96 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 51 Most Valuable Professional

Product updates

Dynamics 365 release plans