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 Pages / Can't use Webapi to ex...
Power Pages
Unanswered

Can't use Webapi to expand a lookup column of a virtual table

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I'm building a website and I use both SQL and Dataverse as database. For dataverse, I use "contact" and "account" tables so that I can manage the contact- and account-type table permissions.

 

For now I have created two virtual tables from SQL tables. Both tables have one lookup column that links them to "account" table in the Dataverse. I am able to perform GET and PATCH operations via webapi on both virtual tables including the lookup columns. However, when I try to perform GET operation, where I also expand data of the lookup column, I always receive this error message:

 

{
"error": {
"code": "9004010D",
"message": "Common Data Service error occurred.",
"cdscode": "0x80040224"
}
}

 

This is the url I use "/_api/xxxx_my_virtual_tables?$expand=xxxx_Organization($select=name)"

 

"xxxx_Organization" is the Schema name of the look up column that is linked to the account table.

 

I tried it with other Dataverse tables and there was no problem. I only get the error when I try it with virtual tables. Is this a known limitation? Did I make any mistake or is there any way to work around it so that I can get the value of the primary column of the account table?

 

Thanks for your help in advance.

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 110

#2
Mohsin Ali Profile Picture

Mohsin Ali 30

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

Last 30 days Overall leaderboard