Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Lookup Filter on 'Work Order Product'.Product: Show only products from Price List

(0) ShareShare
ReportReport
Posted on by 1,788

We're having a requirement to filter the Product lookup on Work Order Product down to those Products that have a Price List Item associated with the Work Order Products Price List.

(Same requirement as here (from 2018): https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/270933/addcustomfilter-not-working-as-expected-neither-in-line-nor-lookup )

When using the "standard way" to create such a Java Script filter we're getting "0x80072500 Invalid URI: The Uri string is too long" because the API call retrieves too many values (too many Products).

According to MS support there is a different behavior between classic UI and UCI. 

We've tried with batch also but that didn't work neither.

Has anyone an idea how this can be solved?

  • Suggested answer
    moko33 Profile Picture
    1,788 on at
    RE: Lookup Filter on 'Work Order Product'.Product: Show only products from Price List

    Hi Thomas, thanks for your suggestion. A new simple lookup field wouldn't be enough to get the filter functionality of a Price List Item as in sales module.

    But a new n:n relationship between Product and Price List with one entry per Price List Item does the filtering job.

    So we decided to solve that with a mixture of several Flows, Work Flow and a additional custom entity. So that for each Price List Item one n:n record is created and, this is where it gets more tricky, on delete of a Price List Item, this n:n record gets deleted as well..

    Surely you could add a plugin here to have a less complicated processing and fewer API calls.
    I was wondering whether there is a more economic solution / best practice to not have to replicate all these relationships.

  • Thomas David Dayman Profile Picture
    11,323 on at
    RE: Lookup Filter on 'Work Order Product'.Product: Show only products from Price List

    Is it possible for you to acheive this with OOB filtering without JavaScript? Maybe by populating a field on the wop form so you can filter the products without using code.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 153 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 104 Super User 2025 Season 1

#3
Engy Louis Profile Picture

Engy Louis 37

Featured topics

Product updates

Dynamics 365 release plans