Hi All,
I am coming from an MS Access background and trying to figure out the best way to import related data.
I can create tables in Dataverse, create look up columns to link tables and I can create alternate keys to prevent duplicates.
I understand that the primary key is a GUID which is populated in the many table when the header record is selected.
My understanding is that the Primary Name column from the header table is the column that presents when selecting data in the look up column of the many table.
This is all good if I want to start from scratch and manual enter data and manually link the data via the look up column.
And based on this I can create views with the related data.
However, how would I go about setting up the tables to be able to import the following that automatically creates the lookup.
I have been searching everywhere and can't seem to figure it out. I see a lot of tutorials on line but no one appears to be addressing this scenario which I would have thought would be common.
The columns with red text are the primary keys (Composite)
Purchase Order Header
| Vendor Id | Purchase Order | Purchase Order Date | Delivery By Date |
| V10002 | 3333333 | 01-Dec-2023 | 14-Dec-2023 |
| V10003 | 7777777 | 01-Dec-2023 | 14-Dec-2023 |
Purchase Order Line Items
| Vendor Id | Purchase Order | Item Code | Quantity | Unit Price | Total Line Value |
| V10002 | 3333333 | ITM11111 | 10 | 1 | 10 |
| V10002 | 3333333 | ITM22222 | 20 | 5 | 100 |
| V10002 | 3333333 | ITM33333 | 30 | 10 | 300 |
| V10003 | 7777777 | ITM44444 | 40 | 12 | 480 |
| V10003 | 7777777 | ITM55555 | 50 | 6 | 300 |
Vendors
| Vendor Id | Vendor Name | Payment Terms |
| V10002 | Apple | 30 |
| V10003 | Microsoft | 30 |
Please let me know if I need to come at this from a different angle and disregard the use of composite primary keys.
Do I need to create a single column in each of these tables to define the KEY?
Any help will be very much appreciated.
Thanks for your help.
Michael