web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Virtual Table data types
Power Apps
Suggested Answer

Virtual Table data types

(0) ShareShare
ReportReport
Posted on by 4

I have a SQL database with a table named Vendor, where VendorID is the primary key. Another table, Product, includes VendorID as a foreign key referencing the Vendor table.

After connecting these tables as virtual tables in Dataverse, the VendorID column in the Product table is appearing as a whole number instead of a lookup. I would like this column to be configured as a proper lookup field referencing the Vendor virtual table.

How can I achieve this

 

I have the same question (0)
  • Suggested answer
    stampcoin Profile Picture
    5,146 Super User 2026 Season 1 on at
     
    Virtual tables created using the virtual connector provider automatically creates all the columns that are represented in the external source table. This will also include columns on which relationships are defined. However, the relationship definition won't be automatically created. You'll have to define this relationship in Dataverse manually.
     
    Please check this article.
     
     
  • Sanketha Profile Picture
    4 on at

    Hi, thank you for the response.

    In my scenario, the primary key in SQL and the primary key in Dataverse are different. I want to synchronize both systems so that they use the same primary key for consistency.

    Current Issue (with Example):

    I have a Vendor table in SQL where VendorID is the primary key. However, when I connect this table as a virtual table in Dataverse, the primary key becomes the vendor name, and I’m unable to select VendorID as the primary key.

    This causes a conflict, especially when using lookups, since the expected reference (VendorID) is not available. Is there any solution for the same?




     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard