Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Does the FilterExpression functionality in ListPages only work with enums?

Posted on by 10

I have created a filter field (type string) in the SalesQuotationListPage form, linked to a method in the SysQueryRangeUtil class.
The filter field receives a PurchRFQId value, and then returns a string, containing the QuotationId's that are linked to the PurchRFQId.

pastedimage1620281080063v1.png

This is straight from the textbooks, but when ever I enter a value in the field, it either crashes or returns this error:

pastedimage1620281356184v2.png

I have tested the method on SysQueryRangeUtil, and when I enter a PurchRFQId value, it finds the correct QuotationId, and returns this.

Any ideas if the FilterExpression only works when receiving an enums? This seems to be the case, all the places I have found, where it is used.

  • RE: Does the FilterExpression functionality in ListPages only work with enums?

    Found the solution myself... which was to put single quotation marks around the %1 in the FilterExpression on the filter field.

    (salesQuotationListPagePurchRFQIdFilter('%1'))

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans