Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Advanced Find with List of Values

Posted on by 15

Is there a way to tell Advanced Find to show the records where a field matches a value in a long list of values?

For example, I have a list of about 250 customer IDs. Other can creating 200 lines where I tell Advanced Find "where Customer ID is X" and join them with an OR function, can I somehow feed that whole list to the Advanced Find and tell it to show me any record where the customer ID appears on that list?

  • KDeRoo Profile Picture
    KDeRoo 15 on at
    RE: Advanced Find with List of Values

    Thanks for confirming my fear... Advanced Find cannot perform the "in" function (or ... is one of).

    After some research over the weekend, I think WRM Toolbox may be able to help me with the SQL 4 CDS.

    If I just need to get the data, I will have to give the WebAPI a whirl.

    Thanks!

  • Verified answer
    Luis Arellano Profile Picture
    Luis Arellano 36 on at
    RE: Advanced Find with List of Values

    Unfortunately that is not possible as far as I know. You'll have to add X number of rows, one for each specific value you want to filter by.

    Also, if by ID you mean GUID this is not possble in Advanced Find.

    If you need to do this just to get some data but do not need the view in the UI, you can achieve that via WebAPI or FetchXml.

    Here you can use the "In" operator and and pass the comma separated values to get the data you need.

    One great tool to simplify this is FetchXmlBuilder

    (github.com/.../FetchXMLBuilder-1.2022.08.001)

    WebAPI example:
    https://yourOrg.crm.dynamics.com/api/data/v9.2/tableName?$filter=Microsoft.Dynamics.CRM.In(PropertyName='columnName',PropertyValues=['value1','value2','value3'])

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

Featured topics

Product updates

Dynamics 365 release plans