cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
GuestOnaQuest
Level: Powered On

Issue when using CDS view in PowerApps (canvas)

I am creating view (Active AssetRisks) in CDS:
View.PNG
Within PA I create collection: ClearCollect(ActiveRisks, Filter(AssetRisks, 'AssetRisks (Views)'.'Active AssetRisks')); 
I set a datasource for view gallery as 'ActiveRisks'. However, I can't access 'Risk Class No Action' field: ThisItem.'Risk Class No Action'.'Risk Class'; If I change the datasource for the gallery to the entity itself (AssetRisks) then I do get 'Risk Class No Action'.

 

Does it has something to do with the fact that 'Risk Class No Action' is a lookup field from the over entity?

 

How can I bypass this limitation and still utilize view functionality of CDS?

1 ACCEPTED SOLUTION

Accepted Solutions
GuestOnaQuest
Level: Powered On

Re: Issue when using CDS view in PowerApps (canvas)

Since as I have already mentioned the 'Risk class no action' is a lookup from another entity, we need to do lookup from within PA as well. So I created a collection containing all risk classes (AllRiskClasses) and: LookUp(AllRiskClasses, 'Probability No Action' = ThisItem.'Probability No Action' && 'Impact No Action Taken' = ThisItem.'Impact No Action Taken').'Risk Class'

View solution in original post

1 REPLY 1
GuestOnaQuest
Level: Powered On

Re: Issue when using CDS view in PowerApps (canvas)

Since as I have already mentioned the 'Risk class no action' is a lookup from another entity, we need to do lookup from within PA as well. So I created a collection containing all risk classes (AllRiskClasses) and: LookUp(AllRiskClasses, 'Probability No Action' = ThisItem.'Probability No Action' && 'Impact No Action Taken' = ThisItem.'Impact No Action Taken').'Risk Class'

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

Users Online
Currently online: 68 members 3,710 guests
Please welcome our newest community members: