Showing results for 
Search instead for 
Did you mean: 
Post Patron
Post Patron

Lookup field in model driven

Hi, I have a question.  If we make a lookup field in an entity, when the field is shown in model driven, it will only show the value of primary field of the entity that we lookup to. How do I choose specific field instead of the primary field? 


Accepted Solutions

You can use Plugin or Workflow both in PreCreate and PreUpdate 

View solution in original post

Community Support
Community Support

Hi @NurNina ,


You can add a new key to your entity by opening it in the Portal (Data > Entities > Your Entity) clicking keys, and adding a new key and then select the field you want to use. Try if this could help.




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

I have a few question: 

  1.  May I know what is the function of creating a new key? 
  2. Let's say if I created Sales Order Line that has a lookup field to product called Item. When I display the field in the Sales Orde Line form, how does the new key help me with choosing the field I want (from product) instead of the primary field (of product) ? 

The lookup field in the form always presents the Primary Attribute of the entity.
If you need more information you can automatically concatenate them in the Primary Attribute.

How to concatenate them in primary attribute? 

You can use Plugin or Workflow both in PreCreate and PreUpdate 

View solution in original post

Helper I
Helper I

I would love to know the answer to this question as well. 

Got it on how to create keys.  My question is how you get model-built apps to use them?

Advocate III
Advocate III

I couldn't get the above solution to work. However I created a work around.


Update the Associate View with the colums you require.




Then when in the view "See Associate View" You can then filter from the associate view. 





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


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

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (55,078)