简体   繁体   中英

Datavserse Relationships from SQL

If I want to import sql data into dataverse tables how can I import data from 2 exist sql tables and map the relationship with a primary key / foreign key relationship?

When I tried this, I didn't get an option to select the pk/fk to map and the relationship in the lookup returned no results for the existing data. How do we know what keys are being used for the relationship?

I think you already know the type of relationships been used in dataverse, As dataverse itself has sql database as backend. Types of table relationships

Now for example, you wish to import contacts into dataverse and that contact has parent (N:1) Account related to it.

You will first need to have that Account record already in dataverse. If it is not available you will import/create Account Record.

If Account record is already available you will need to get Guid of that account record. Once you have the Guid, in contact table you will parentcustomerid field and you should set this field with Type of table ie account and it's Guid.

check this forum especially comment section

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM