web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

'Contain-values' operator is not pulling all records using either FetchXML or OData call

(0) ShareShare
ReportReport
Posted on by 10

We have a view from Advanced Find on Users entity to filter out the records based on Userrole field. I'm using 'Contain-values' operator since User role is a multiselect optionset and can contain multiple values in it. This view is returning all records that are matching the criteria on lower orgs but it is working partially on Production. It is not pulling only some records on production.

I have compared the records that are not working/pulling across the records that are getting pulled and they look fine. Same users getting pulled in lower orgs too.

I checked the network call with fetch request that is hitting the server and it looks fine but still not pulling those records. Also verified by making the Odata call in the browser and this is also not pulling those records - [organization uri]/api/data/v9.0/contacts?$select=fullname,sample_outdooractivities&$filter=Microsoft.Dynamics.CRM.ContainValues(PropertyName='sample_outdooractivities',PropertyValues=%5B'2'%5D

Seems like it started happening recently or to the recent records. So want to understand if 'Contain-Values' operator uses indexing/full-text indexing and due to some changes at org level, it is not pulling those records.

Any help in identifying the issue would be greatly appreciated.

Thanks,

VJ

I have the same question (0)
  • Vijaya Profile Picture
    10 on at
    RE: 'Contain-values' operator is not pulling all records using either FetchXML or OData call

    Thank you.

    I'll check if I can create a ticket with Microsoft.

  • Guido Preite Profile Picture
    54,084 Moderator on at
    RE: 'Contain-values' operator is not pulling all records using either FetchXML or OData call

    in your situation I would open a support ticket to Microsoft, you will need to replicate the issue together with the support but they can check what's going on.

  • Vijaya Profile Picture
    10 on at
    RE: 'Contain-values' operator is not pulling all records using either FetchXML or OData call

    Guido Preite  Thanks for your response.

    Yes, I have verified from Advanced find too in all orgs but only production is not pulling some (10records out of 40 qualified) records.

    Verified values as well and they look fine. If I use "Equals" operator the records are pulling perfectly fine as long as there is only one option selected in those records. So it should pull using "contain-values" operator too.

  • Guido Preite Profile Picture
    54,084 Moderator on at
    RE: 'Contain-values' operator is not pulling all records using either FetchXML or OData call

    afaik multiselect optionset fields are not tied to indexing.

    did you check with advanced find if in production you get the right results? did you check the production data to see if the values are stored correctly?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 129 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans