cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JollyDodo
Frequent Visitor

Linking opportunities to an account (CDS)

Hey,

 

Using CDS, I want to view a gallery with accounts, select an account and then view the related opportunities to then zoom in on those. However, this does not work as expected. The opportunity entity does not seems to have parentaccountid/contactid fields available in a gallery, so i can't filter on those.

 

Nonetheless, when creating a form using the opportunity entity, it actually still shows account/contact information. So my question is, how to view opportunities related to an account? What entity should i select in the gallery and how to link them?

 

Any help is much appreciated! 

1 ACCEPTED SOLUTION

Accepted Solutions
JollyDodo
Frequent Visitor

Managed what i want by using this link:

https://powerapps.microsoft.com/en-us/blog/one-to-many-relationships-for-canvas-apps/

 

Make 2 gallery's. Gallery1: datasource=account. 

Gallery2:datasource=opportunities.

The items for gallery2 should be: Gallery1.selected.opportunities

 

this works perfect to load all opportunities related to an account. 

View solution in original post

1 REPLY 1
JollyDodo
Frequent Visitor

Managed what i want by using this link:

https://powerapps.microsoft.com/en-us/blog/one-to-many-relationships-for-canvas-apps/

 

Make 2 gallery's. Gallery1: datasource=account. 

Gallery2:datasource=opportunities.

The items for gallery2 should be: Gallery1.selected.opportunities

 

this works perfect to load all opportunities related to an account. 

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.

Top Solution Authors
Top Kudoed Authors
Users online (74,937)