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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

API Request for Query data from multi-select picklists

(2) ShareShare
ReportReport
Posted on by 4
I'm trying to understand how to correctly Query (let's say Contacts) the Multi select Picklists fields using the API? Yes, I have the documentation from https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/multi-select-picklist?view=op-9-1#query-data-from-multi-select-picklists but I don't fully understand how to use `Equal`. Also, can someone share how to use `Contains` Here is an example of my request that fails. pic
 
GET Request - /accounts?%24filter=new_testmultifield%20eq%201
 
I got
 
{  /error/: {    /code/: /0x0/,    /message/: /A binary operator with incompatible types was detected. Found operand types 'Edm.String' and 'Edm.Int32' for operator kind 'Equal'./  }}
I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at
    My tool Dataverse REST Builder can show you the syntax on how to deal with multi-select optionsets (Choices)
    If you don't want to install the tool you can just use the online demo, if you select request type "Retrieve Multiple" and the table "Custom Table" there is a field called "Choices" where you can add the filter Equals and Contains Values, they use the Microsoft.Dynamics.CRM.In and Microsoft.Dynamics.CRM.ContainsValues operators

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans