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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (16,364)