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 / Creating Lookup Relati...
Power Apps
Unanswered

Creating Lookup Relationship Between Virtual Tables in Dataverse

(0) ShareShare
ReportReport
Posted on by 79

Hello Power Platform Community,

I want to use data stored in OneLake as part of my Power Platform solution. There are two tables in OneLake that I would like to import into Dataverse to use in my model-driven app. Since I didn't want to copy the data into Dataverse, I used Virtual Tables in Dataverse to reference OneLake.

The relationship between T1 and T2 is one to many (T2 already contains a FK column storing T1's PK). Additionally, the OneLake data is going to be refreshed once a day. My question is: how can I create a lookup relationship between these two tables after the virtual tables are created? I don't seem to be able to change the column type of FK in T2 to lookup.

Any guidance on how to achieve this would be greatly appreciated!

Thank you in advance!

I have the same question (0)
  • MichaelFP Profile Picture
    1,943 Moderator on at

    @TaraAssadipour You need to Manually. First you gonna create these two table as virtual tables, and after you gonna link both using the default way, creating a relationship.

     

    You can check more details here 👉 Setting up relationships with virtual tables with Power Apps - Power Apps | Microsoft Learn

    Please if my answer help you, please give me a kudo. If solve your question please mark as solution.

  • TaraAssadipour Profile Picture
    79 on at

    @Michaelfp Thanks for your reply! I could successfully create a new N:1
    relationship, resulting in a new lookup column in T2 that references T1. However, the new lookup column is empty (there is no value set but if you click on it the lookup values show up and you can select an item), and I want the existing FK column to be converted into this lookup column with the same values. I can develop a flow to update the new lookup column with the values from the existing FK column (and I have to run it every time data gets refreshed in virtual tables), but I wonder if there's a better way.

  • MichaelFP Profile Picture
    1,943 Moderator on at

    Would recommend that you create a plugin for the retrieve or RetrieveMultiple, so every time someone get the data from the virtual table, you check that and update the relationship.

    If my answer helped you, please give me a Kudo (👍). If solve your question please mark as solution. This is help the community.

  • TaraAssadipour Profile Picture
    79 on at

    @Michaelfp Thanks! I'll do more research to see if I can find a low code/no code solution.

  • TaraAssadipour Profile Picture
    79 on at

    Well it seems that I cannot update the newly created lookup field neither manually (when I try to select a lookup value, it says changes are not saved), nor through power automate: "APIM request was not successful : StatusCode : BadRequest, Reason : A column name that doesn't exist in the table was referenced".

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