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

Notifications

Announcements

Community site session details

Community site session details

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

Virtual Table data types

(1) 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,058 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard