cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Poweruser1101
Helper II
Helper II

Access Related table data in a Gallery Control

Hi All,

 

I am trying to display related table Column in a gallery control but i am unable to do so.

 

I have a lookup of Entity B on Entity A in dataverse. I have created a gallery control in my canvas app and the items property of gallery is set to 'Entity A' and I want to display a column say 'Category' from 'Entity B' in the gallery.

Category is an option set on 'Entity B'

I tried the below formula however i am getting an error say 'Expected Text Value'

 

LookUp('Entity B','Entity B'=GUID(ThisItem.'Entity B'.'Entity B')).Category

 

Kindly help

 

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

hi @Poweruser1101 ,

 

One easy thing you can do here is to create a view in Dataverse that adds your columns from Table B into a Table A View and since it is a Lookup column it will allow you to do this.  In the Gallery you can then utilize this view and you will have access to your columns from Table B directly from the columns.

 

Thanks

Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

3 REPLIES 3
dpoggemann
Super User
Super User

hi @Poweruser1101 ,

 

One easy thing you can do here is to create a view in Dataverse that adds your columns from Table B into a Table A View and since it is a Lookup column it will allow you to do this.  In the Gallery you can then utilize this view and you will have access to your columns from Table B directly from the columns.

 

Thanks

Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

rampprakash
Community Champion
Community Champion

Hello @Poweruser1101,

 

You can try @dpoggemann solution hope it will work, if you want to do it in PowerApps add all the values in a COLLECTION and display the same..

 

Please mark as Answer if it is helpful and provide Kudos

 

 

Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

Blog : https://microsoftcrmtechie.blogspot.com

Hey, 

Thank you for responding. I created the view and added the column from the lookup entity and tried the below in the gallery
ThisItem.'Entity B(LookUp)'.'Name'  It worked.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,782)