cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FeelTheBeat
Regular Visitor

one-to-many relationship between entities in CDS

Hello

 

I created many entities in the CDS and alot of them must be link to each other. but when I click to add a relationship I can only add a lookup. I would like to be able to add a one-to-many or a many-to-many relationship between my entities in the CDS. How can I do this?

 

Thank you.

4 REPLIES 4
v-yamao-msft
Community Support
Community Support

Hi FeelTheBeat,

 

I assume that you could refer to this documentation about “Build a relationship between entities”:
https://powerapps.microsoft.com/en-us/tutorials/data-platform-entity-lookup/

 

From this documentation, we know that Many-to-many relationship is currently not supported yet, while about how to create One-to-many relationship, I haven’t found a related documentation on it. I am confirming from my side and I will back to you once I got any updates.

 

Best regards,
Mabel Mao

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

Hello V-Yamao

 

Thank you for your quick reply and for helping i'm kinda in a dead end right now 😕

Have you found away to create a one to many relationship ?

CWesener
Power Apps
Power Apps

 

Hi FeelTheBeat,

 

Thanks for posting! Right now we only support creating the relationship from one direction, but you can support both one-to-many and many-to-one relationships, as long as its created from the correct relationship. If you would like to create a one-to-many relationship from Entity A to Entity B, you would add a lookup to Entity B pointing to A.

 

For many to many, while we dont support an automated way to do this - you can look at a standard entity "Team member" as an example. This is an entity which sits between two other entities, creating a many-to-many relationship betweent those entities. You can create the same by creating a new custom entity with two lookup fields, one to each of the entities you would like to form the many to many relationship.

 

We are looking in the future at making this easier in the portal, but hopefully this unblocks you for now.

 

Thanks,

Thanks,
Clay.

Helpful resources

Announcements
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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

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 (90,094)