Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Missing distinct="true" in lookup fetchxml of productid on quotedetail mainformular

Posted on by 219

Hello,

on the mainformular of quotedetail is a lookupfield called productid.

when I click on the "glass" to start the search of the lookupfield, I only get 3 products back in the preview.

pastedimage1645514957587v1.png

I already found the reason: In the fetchxml that is send there is the distinct="true" missing.

The search gives more results back, bad several times the same product because the distinct is missing.

Is there a way to add the distinct to the fetchxml?

Do other have the same problem?

  • McDauly Profile Picture
    McDauly 219 on at
    RE: Missing distinct="true" in lookup fetchxml of productid on quotedetail mainformular

    Hello Steve, thank you. Your Information solved my problem!!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Missing distinct="true" in lookup fetchxml of productid on quotedetail mainformular

    Hi McDauly,

    You are using Products in Parent Price List view, right? You could check/edit the fetch xml of view by FetchXML Builder in the XrmToolbox. I have checked this view, there is the distinct="true":

    Snipaste_5F00_2022_2D00_02_2D00_22_5F00_16_2D00_29_2D00_31.png

    The products showed  in this lookup field is based on the Price list you select in the Quote. You could try to add price list items to make products you need show in this lookup field.

    1. Click the Price List in your quote.

    Snipaste_5F00_2022_2D00_02_2D00_22_5F00_16_2D00_32_2D00_20.png

    2. Add price list items.

    Snipaste_5F00_2022_2D00_02_2D00_22_5F00_16_2D00_32_2D00_38.png

    3. Check the products in the Existing product of Quote line.

    Snipaste_5F00_2022_2D00_02_2D00_22_5F00_16_2D00_37_2D00_29.png

    Reference:

    Add products to quotes, orders, or invoices (Dynamics 365 Sales) | Microsoft Docs

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans