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 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:
I have the same question (0)

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 Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard