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 / Choice field in virtua...
Power Apps
Unanswered

Choice field in virtual table?

(0) ShareShare
ReportReport
Posted on by 164

Hey all, 

is it possible to make choice dropdown fields in a virtual table with SQL on prem as the datasource?

When creating the virtual table I only get the option of text field. 

 

Maybe I didn't see it anywhere or there is a hack out there to create choice fields in a virtual table and save them to SQL? 

I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @vobius,

     

    Choice fields in Dataverse have a numeric value and a label for the display text which does not have an equivalent single column value in SQL to map to. If in SQL your choice fields are stored as a separate table with a Guid primary key, and then you have a foreign key on your main SQL table referencing that choice table, you could then use a Lookup column in the virtual table.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • jonheb Profile Picture
    164 on at

    I just tested it but it doesn't seem to work.. Did it like described here powerapps-docs/setup-virtual-table-relationships.md at main · MicrosoftDocs/powerapps-docs · GitHub 

     

    I have 2 sql tables where I defined a foreign key relationship. Both primary keys are GUID uniqueidentifier fields. When I create the relationship in dataverse a.) existing records aren't displayed in the lookup field and b.) I can't save new records because of a "ISV Code error"..

  • jonheb Profile Picture
    164 on at

    Got the first thing to work. Had to delete the foreign key field in the "main table", create the relationship and put in the same column name and now it works.

     

    BUT: I want to have multi choice select so that I can have multiple answers at once - is there any option for this? Ay idea?

  • Headache Profile Picture
    2 on at

    Precisely what I was looking for as well - did you ever find a solution?

  • jonheb Profile Picture
    164 on at

    Unfortunately not and therefore we don't use virtual tables nor the application I was looking to build with it.

  • emcedeltate Profile Picture
    4 on at

    I talked to microsoft support team about the issue. They said that multiple choice cannot be used in sql sourced virtual tables.

     

    "This is actually a limitation on Virtual Tables. This is only expected to work on Sharepoint.
    The Product Group team will update the documentation to have this information reflected."

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard