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

Relationships in CDS

Coming from PowerBI I'm having trouble understanding how to setup relationships in CDS. I have two files imported as custom entities, one with Accounts and one with Opportunities, each with 10k plus rows from a csv. I want to setup one-to-many between Accounts and Opportunities, as each Opportunity record has the key of an Account. 

In PowerBI, there is a simple drag and drop tool to match the keys. In CDS, there appears to be something different and I don't understand how to match the existing keys in those entities. 

I think I'm misunderstanding something fundamental here. 

Also, can somebody explain the "Primary" and "Related" terminology when setting these up? The Microsoft documentation appears to say the terminology is reversed depending on which service you use, and it appears counterintuitive (my Account shows up as "related" not "primary", which to me is odd). Why not just call it "Many" and "One" to avoid confusion?

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @astrocramp ,

 

You could have a look at the discussion in below thread about Primary Name in CDS entity:

https://powerusers.microsoft.com/t5/Common-Data-Service-for-Apps/Primary-Name-what-s-that-all-about-...

 

For information about relationships in CDS, please learn from the documentation here:

https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/create-edit-entity-relationship...

 

Regards,

Mona

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

View solution in original post

1 REPLY 1
v-monli-msft
Community Support
Community Support

Hi @astrocramp ,

 

You could have a look at the discussion in below thread about Primary Name in CDS entity:

https://powerusers.microsoft.com/t5/Common-Data-Service-for-Apps/Primary-Name-what-s-that-all-about-...

 

For information about relationships in CDS, please learn from the documentation here:

https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/create-edit-entity-relationship...

 

Regards,

Mona

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

View solution in original post

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

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 Kudoed Authors
Users online (18,340)