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 :
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.

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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)

  • EricOwens Profile Picture
    5 on at

    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?

  • Suggested answer
    Community Member Profile Picture
    on at

    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

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

  • Community Member Profile Picture
    on at

    Hi EricOwens,

    Have you downloaded Invoice template to import from CRM?

    pastedimage1635410878852v1.png

  • EricOwens Profile Picture
    5 on at

    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!

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 > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 182 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans