Hello all,
We have to import Data using PowerShell script from our ERP to the Dataverse and we created several tables.
We have a table 'Persons' and a table 'Lessons'
1 person can be subscribed to several lessons and 1 lesson can have more than 1 person. So, according to the fact we have many to many relation, we created a new table 'PersonsLessons'
So we have now the following schema

When importing our data from our ERP, we first import the persons. The IDPerson comes from our ERP and is in text format.
We then import the Lessons and here again, the IDLesson field comes from our ERP system and is in text mode.
We created in the Dataverse the links between the different tables like the schema here above.
finally, we are importing the subscriptions data form our ERP which contains the IDPerson and the IDLesson but it seems we cannot simply paste the values in the corresponding fields of our table
PersonsLessons. IT seems we first have to make lookup on each table (persons and lessons) to get the value of the column type 'Unique identifier' and then create our record with these 2 'unique identifier' values in the table PersonsLessons.
Can you confirm that ? or maybe is there a way to insert our values into PersonsLessons without having to make a lookup in both tables ?
Thanks for your help 🙂