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

Price List Item cannot be filtered on Price List in a canvas app

Hi guys,

 

currently we're struggling trying to filter price list items based on a price list that is given by a record from the modeldrivenformintegration (Model Driven App).

It was not even possible straight away to add Price List Item at all as a data source. I needed to switch to the new data source experience. But still I cannot filter the items as it says the pricelist field cannot be expanded or something like that. Maybe my formula is wrong, but seems like price list & price list item has a special role here.

First picture shows my first try which didn't work as it seems like the right side of the formula is a record and cannot be compared directly.

Second picture I tried to get the Price List (unique identifier) of the record itself by saying "Pricelist.Pricelist" which works in design time but leads to the attached error in runtime.

 

Any help would be great.

 

Regards

Andy

2 REPLIES 2
Community Support Team
Community Support Team

Re: Price List Item cannot be filtered on Price List in a canvas app

Hi @aschwarz ,

Could you tell me the data type of pricelist field?

Try this formula:

 First(ModelDrivenFormIntegration.Data).pricelist

Waht's more, could you tell me how do you get the Price List (unique identifier)?

Here're some helpful tips about modeldrivenformintegartion for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/embedded-canvas-app-guidelines

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
aschwarz
Level: Powered On

Re: Price List Item cannot be filtered on Price List in a canvas app

Hi @v-yutliu-msft ,

 

I have a custom entity contract and on the contract I have a lookup field to the pricelist (pricelevel).

On the contract form I want to integrate a canvas app to show the contract lines (also a custom entity) and provide an easy way to pick price list items from the corresponding pricelist.

Therefore I want to grab the pricelist in the canvas app and use it as a filter for the price list items (which is the default relation for sure). But that doesn't work.

I've tried multiple ways but it seems like the entity pricelist is not acting like other entities in the CDS.

I can show all price list items (of all price lists) but when I try to filter I do not get any results.

Filter('Price List Items', 'Price List'.'Price List' = [@ModelDrivenFormIntegration].Item.Pricelist.'Price List')

Regards

Andy

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 362 members 5,201 guests
Please welcome our newest community members: