cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cfebvre
Kudo Collector
Kudo Collector

Dataverse Virtual Tables - how to honour existing integer relationships from linked SQL tables?

Hi All,

 

I've set up a virtual connection to our On Premises SQL Server, and have managed to import and link a table in Dataverse.

The connection works brilliantly - for a single table.

The problem is that we have multiple existing tables related via integer fields in SQL, and I can't work out how I can possibly keep that relationship in the virtual tables within Dataverse (since Dataverse requires GUID Lookup columns).

 

The closest thing I've found is:

SQL to Dataverse Data Migration using Azure Data Factory

https://www.youtube.com/watch?v=Px4-QZt6OoY

(This tutorial covers how to import data and set up Lookup relationships from Integer columns in SQL, but this is a one way, one time import - not a virtual connection where the data is synced).

 

Has anyone had experience attempting this? Would it even be possible?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

Hi @cfebvre ,

Virtual tables no longer require an associated GUID as a primary key with the virtual connector provider.

Please look at the following portion of the documentation showing how to connect to an AccountID in the SQL source.  https://docs.microsoft.com/en-us/power-apps/developer/data-platform/virtual-entities/create-virtual-... 

 

 

https://docs.microsoft.com/en-us/power-apps/developer/data-platform/virtual-entities/create-virtual-... 

 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

2 REPLIES 2
dpoggemann
Super User
Super User

Hi @cfebvre ,

Virtual tables no longer require an associated GUID as a primary key with the virtual connector provider.

Please look at the following portion of the documentation showing how to connect to an AccountID in the SQL source.  https://docs.microsoft.com/en-us/power-apps/developer/data-platform/virtual-entities/create-virtual-... 

 

 

https://docs.microsoft.com/en-us/power-apps/developer/data-platform/virtual-entities/create-virtual-... 

 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Thanks a million @dpoggemann . I'll deep dive into this next week but this is exactly the thing - thank you.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,946)