cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
binkster
Level: Power Up

Dynamics 365 CDS - Display lookup field in gallery

I've searched online but can't find a straighforward answer for this (and apologies as it's probably a pretty basic question!)

 

I'm using the CDS connector to work with Dynamics 365 data. 

 

How do you display lookup field in a gallery when using the CDS?

 

When I was using the Dynamics 365 connector, I would use the following syntax to display a lookup to an Account but this doesn't work with the CDS connector:

 

LookUp(Accounts,accountid=ThisItem._new_accountnameid_value,name)

 

What is the equivalent formula for the CDS connector?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
binkster
Level: Power Up

Re: Dynamics 365 CDS - Display lookup field in gallery

Resolved this myself after playing around with the formula. 

To display the lookup name in the gallery rather than the guid, use the following syntax:

 

ThisItem.'<Insert field Label of current entity>'.<Insert field label of entity being looked up to>'

 

In my instance I'm looking up to the Account entity from a custom entity where the field is called 'Site Name'

e.g.

ThisItem.'Site Name'.'Account Name'

View solution in original post

1 REPLY 1
Highlighted
binkster
Level: Power Up

Re: Dynamics 365 CDS - Display lookup field in gallery

Resolved this myself after playing around with the formula. 

To display the lookup name in the gallery rather than the guid, use the following syntax:

 

ThisItem.'<Insert field Label of current entity>'.<Insert field label of entity being looked up to>'

 

In my instance I'm looking up to the Account entity from a custom entity where the field is called 'Site Name'

e.g.

ThisItem.'Site Name'.'Account Name'

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Users Online
Currently online: 72 members 3,240 guests
Please welcome our newest community members: