Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How do you import multiple lookup values to one field?

(0) ShareShare
ReportReport
Posted on by 215

I'm hoping this is a pretty easy question - I need to import multiple lookup values into one field. How do I do this?

For example, in my Account entity, I have a field called "Region" which is a lookup for the Territory entity. It's an N:N subgrid meaning it can contain more than one Territory in the field. I have a spreadsheet which contains all this information but I'm not sure how to actually import it. Using commas (,) and quotation marks (") to separate the values didn't work. Am I missing something obvious?

Thanks in advance for any help with this!

*This post is locked for comments

  • Suggested answer
    Marcel Maier Profile Picture
    Marcel Maier 60 on at
    RE: How do you import multiple lookup values to one field?

    There is a Plugin in the XrmToolbox for this. It's called "Manage NN relationships" and it allows you to import excel or csv files where you have to provide a list with the GUID of the entities that you want to connect. Just connect to your organization and select the correct relationship then you can import your list.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: How do you import multiple lookup values to one field?

    The standard data import mechanism doesn't support N:N relationships, so unfortunately, as per the previous post, you'll either to do this programmatically using the Associate method, or a 3rd party tool

  • Martin Donnelly Profile Picture
    Martin Donnelly 1,010 on at
    RE: How do you import multiple lookup values to one field?

    Until someone comes up with an import solution, an N-to-N relationship IS actually an entity -- at least it has an entity name -- which you can discover in relationship screen.  If you were to write a utility using the SDK API, you would find and use the Associate method.  I've never actually tried to "export for reimport" or download a template for importing to an N-to-N.

    You might also look into integration tools such as KingswaySoft.  Also requires Visual Studio platform but, is less like writing code.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans