cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArmedWaffles
Level: Power Up

How to Create Cascading Dropdown Referencing LookUp Field Type in D365 Data (PSA Solution)?

Hi Community!

 

First time poster and new to the PowerApps and D365 customization world!

 

I'm looking to create simple Time Sheet Entry PowerApp using D365 PSA data as a proof of concept.

 

I would like to implement a Cascading Dropdown revolving around 2 Fields 

-Project Name

-Project Tasks associated with the Project Name

 

What I'm looking to Acheive:

I am looking to mimic the following in PowerApps:

 Cascading Drop Down D365.PNG

 

What I have Tried So Far:

 

DropdownA (in "Items" property)

-Show all Projects Names that I have access to referencing "Time Entries" entity in D365 PSA

-Works!

 

Distinct('Time Entries',msdyn_project.msdyn_subject)

DropdownB (in "Items" property)

-Show all Project Tasks that I have access to referencing "Time Entries" enity in D365 PSA

-Works!

 

 

Distinct('Time Entries',msdyn_projectTask.msdyn_subject)

DropdownC (in "Items" property)

-Take the Project Name selected in DropdownA and show all distinct tasks related to that specific project that i've been assigned

-DOES NOT WORK Smiley Sad

 

Distinct(Filter('Time Entries',msdyn_project.msdyn_subject=DropdownA.Selected.Value),msdyn_projectTask.msdyn_subject)

This is WALL THAT I HIT Smiley Sad

Cascading Drop Down D365 2.png

 

Error Message:

"The Request Operation is Invalid.

Server Response: The Property msdyn_subject is not a primary key of the related entity"

 

I've also tried playing around wtih pulling data from the "Project Task" entity and "Project" Entity with no luck!

 

Data References:

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/msdyn_timeentry?view=dynami...

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/msdyn_projecttask?view=dyna...

 

How do I get it to Cascade properly?!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to Create Cascading Dropdown Referencing LookUp Field Type in D365 Data (PSA Solution)?

Hi @ArmedWaffles,

 

Try below formula instead:

Distinct(Filter('Time Entries',DropdownA.Selected.Value in msdyn_project.msdyn_subject),msdyn_projectTask.msdyn_subject)

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.
2 REPLIES 2
Community Support Team
Community Support Team

Re: How to Create Cascading Dropdown Referencing LookUp Field Type in D365 Data (PSA Solution)?

Hi @ArmedWaffles,

 

Try below formula instead:

Distinct(Filter('Time Entries',DropdownA.Selected.Value in msdyn_project.msdyn_subject),msdyn_projectTask.msdyn_subject)

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.
ArmedWaffles
Level: Power Up

Re: How to Create Cascading Dropdown Referencing LookUp Field Type in D365 Data (PSA Solution)?

It works! I realize that the using the "in" operator as suggested vs the "=" operator make way more sense when working with D365 entities!

 

Thanks!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 52 members 4,240 guests
Please welcome our newest community members: