web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas app using CDS o...
Power Apps
Answered

Canvas app using CDS one-to-many relationships

(0) ShareShare
ReportReport
Posted on by 716

Hello Power Apps Community,

I hope you can help please with a canvas app issue I'm having.

I have three CDS entities: "Office Space", "Token" and "Booking". They use one-to-many relationships.

I can have one "Office Space" which has many "Tokens", and I can have one "Token" which has many "Bookings".

I have a gallery that's data source is "Booking".

On each record I want to display three pieces of data:

  1. Booking Name. This is from the Booking entity. - So this can be achieved using this expression in the Text property of a label: ThisItem.'Booking Name'
  2. Token Date. This is from the Token entity. Which is the parent of Booking. - So this can be achieved using this expression in the Text property of a label: ThisItem.Token.'Token Date'
  3. Office Space Name. This is from the Office Space entity. Which is the parent of Token. - This is where I'm having trouble, as I am unable to present this value. I believe I need to use a lookup in my expression, but am unable to achieve this.
 
If anyone can help and explain how I look up two entity levels above and show the data that would be great.
Thanks very much,
Garry
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @GarryPope ,

     

    It's not SUPPORTED to reference multiple level of relationship directly by double dot notation. 

    First to use LookUp formula to obtain the LookUp field value of Token Entity, and use Dot Notation to reference Office Space Name from the related record.

    Please try with this.

    LookUp(Tokens, Token = ThisItem.'LookUpFieldofBookingEntity'.Token, 'LookUpFieldofTokenEntity').'Office Space Name' 
    //I assume the Token is the GUID field of Tokens Entity, and then replace that two LookUp field.

     

    For example: Reference the Full Name from GrandParent Entity-User.

    Snipaste_2020-08-27_16-13-41.png

    Hope this helps.

    Sik

  • CU01081947-0 Profile Picture
    716 on at

    Hello @v-siky-msft,

    Thanks so much. This is great and worked perfectly. I appreciate your help.

    Garry 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard