cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ThomasVDS
Level: Powered On

Gallery lookup data linked to other gallery not working using CDS

Hi,

 

I have 3 tables which I linked using relationships:

- Consultants

- Training history

- Training list

From the training history entity I have 2 relationships 'many-to-one' to the other 2 tables.

I first select a consultant, then I want to see which trainings he has followed.

The second gallery is shown the trainings correctly via Items: Gallery2.Selected.'Training Histories'

But I can't show the lookup columns like 'ThisItem.'Training ID' -> expected text value (see attachment).

I also tried to show the training name which is present in the training list entity via 

LookUp('Training List','Training ID'=ThisItem.'Training ID','Training Name')

This gives the error 'invalid argument type'.

 

Any help would be great! Thanks

 

Kr

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Gallery lookup data linked to other gallery not working using CDS

Hi @ThomasVDS 

 

Can you please confirm the name of attribute you have used for creating the lookup? Lets suppose its name is "LookUpField", the label text expression will get modified to:
 
 ThisItem.LookUpField.'Training ID'
or to display Training Name
 
LookUp('Training List','Training ID'=ThisItem.LookUpField.'Training ID','Training Name')
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Gallery lookup data linked to other gallery not working using CDS

Hi @ThomasVDS 

 

Can you please confirm the name of attribute you have used for creating the lookup? Lets suppose its name is "LookUpField", the label text expression will get modified to:
 
 ThisItem.LookUpField.'Training ID'
or to display Training Name
 
LookUp('Training List','Training ID'=ThisItem.LookUpField.'Training ID','Training Name')
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

ThomasVDS
Level: Powered On

Re: Gallery lookup data linked to other gallery not working using CDS

@yashag2255Thank you, it worked!

 

For the training ID -> ThisItem.'Training ID'.'Training ID'

For the Training Name I even didn't need to do a lookup -> ThisItem.'Training ID'.'Training Name'

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Users Online
Currently online: 129 members 5,329 guests
Recent signins:
Please welcome our newest community members: