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

Entities relationships

Hi guys, 

 

I have a question about the relationships between entities in CDS.

 

So there are three entities, portfolio, projects and risks. As the attched image shows, between portfolio and projects, the relationship is one to many. Between projects and risks, the relationship is one to many. 

 

Blank Diagram.png

In this scenario, I want to put all related projects and related risks as subgrid views on the main form of portfolio. 

I know there is a option for projects, which is Show related records. But there is no option for risks. 

 

Capture.PNG

 

Please let me know your ideas. Much appreciated.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

You could create a one to many relationship of Portfolio to Risks, and a Process workflow that sets the value of Portfolio in Risks based on the Portfolio in the Risk's Project, to be triggered on Create, and on Change. In forms, keep the Portfolio in Risks, hidden or read only. 

 

It works.

View solution in original post

5 REPLIES 5
v-xida-msft
Community Support
Community Support

Hi @Anthlex ,

Do you want also to display related risks records as Subgrid View within the Main Form of your Portfolio Entity?

 

If you want to  display related risks records as Subgrid View within the Main Form of your Portfolio Entity, I afraid that there is no way to achieve to your needs in PowerApps Model-Driven form.

 

Currently, within PowerApps, we could only display direct relationship as Subgrid related view within one Entity form, we could not display indirect relationship as Subgrid related view within one Entity form.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

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

You could create a one to many relationship of Portfolio to Risks, and a Process workflow that sets the value of Portfolio in Risks based on the Portfolio in the Risk's Project, to be triggered on Create, and on Change. In forms, keep the Portfolio in Risks, hidden or read only. 

 

It works.

View solution in original post

Hey Kris, Thanks for the information. I'll raise an idea there then. Cheers.

 

 

Anthlex
Regular Visitor

Yeah, it seems the only way to do now. Thanks for sharing you idea. Cheers.

RamyaPF
Frequent Visitor

Hello Everyone,

We are now having the same situation, and I cannot see any OOB solution for this?

Is there any way to achieve it without code?

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 (47,553)