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

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans