Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

API Request for Query data from multi-select picklists

(1) ShareShare
ReportReport
Posted on by
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'./  }}
  • CU28050851-0 Profile Picture
    CU28050851-0 2 on at
    API Request for Query data from multi-select picklists
    Maybe we need a course on how to use `Equal`
  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,069 Super User 2024 Season 1 on at
    API Request for Query data from multi-select picklists
    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans