Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

polymorphic lookups

I have an approval board in a gallery and I need to get the approver of each application

I think it is with the owner of the Approval request entity but I don't know how to get it, it tells me that I have to give a polymorphic lookups

can someone help me with the formula

Helper V
Helper V

do you have more than one entity associated with the owner field? You'll likely need to use the functions IsType and AsType to properly display the owner field

Hi @hnguy71 

thanks for answering


I have a gallery that consumes a CDS entity called approvals. I want to get the Owner field, can you give me a guide please

you're using only 1 CDS called Approvals? It shouldn't ask for a polymorphic lookup. Are you using another CDS elsewhere with the same field name?

Hi @hnguy71  the owner is in an entity called users

Hi @octaking ,

Based on the needs that you mentioned, I think the AsType function and Users Entity could achieve your needs.


On your side, you need to add Users Entity as data source within your app firstly. The Screenshot as below:2.JPG

Within your Gallery, set the Text property of the Label to following:

AsType(ThisItem.Owner, [@Users]).'Full Name'


"Owner: " & AsType(ThisItem.Owner, [@Users]).'Full Name'

Please consider take a try with above solution, check if the issue is solved.


Please check the following blog for more details about the polymorphic lookups:


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Responsive Resident
Responsive Resident


This is how you can get values from polymorphic lookups.


//this example is for embedded canvas app so instead of modeldrivenformintegration use relevant name.

If(IsType( [@ModelDrivenFormIntegration].Item.’Company Name’, [@Accounts] ), AsType([@ModelDrivenFormIntegration].Item.’Company Name’, [@Accounts] ).’Account Name’, AsType( [@ModelDrivenFormIntegration].Item.’Company Name’, [@Contacts] ).’Full Name’ )

For total details please refer to the blog:


If this answers your question please mark it as verified


Pavan Kumar Garlapati

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (85,489)