Skip to main content
Community site session details

Community site session details

Session Id : iAxW7sKDhTgAOUDGXx4m8v
Power Automate - Building Flows
Answered

Using in-operator in dataverse list rows

Like (0) ShareShare
ReportReport
Posted on 14 Apr 2023 06:51:00 by 157

Hi all, I would like to create a Dataverse O-Data filter with an IN operator.

My O-Data filter query looks like this:
https://i.imgur.com/Bl6q2RK.png

KimBim_0-1681454963038.png

 

 

According to this doc, this should not be a problem:
https://learn.microsoft.com/en-us/odata/webapi/in-operator#:~:text=GET%20/service/Products%3F%24filter%3DName%20in%20(%27Milk%27%2C%20%27Cheese%27%2C%20%27Donut%27)

 

Unfortunately, the action always fails after several attempts:
https://i.imgur.com/8B9LNIp.png

KimBim_1-1681454972061.png

 

 

I was able to find in this post that there is a restriction for the "List Rows in present table" action in Excel:
https://powerusers.microsoft.com/t5/Using-Flows/IN-operator-equivalent-in-OData-PowerAutomate/td-p/657097

In the Dataverse documentation I could not find this restriction (or I read it over?):
https://learn.microsoft.com/en-us/connectors/commondataserviceforapps/#list-rows

 


In general, the goal is as follows:
I want to compare which rows in the "Topics" table are already created (i.e. occur in my static array of the odata filter query) and which are new. So I would have to negate the OData filter later...

 

Does anyone have experience with this or another smart solution to filter a dataverse list using an array without creating an Apply-To-Each?

 

Thanks in advance 🙂

 

 

 

  • KimBim Profile Picture
    157 on 21 Apr 2023 at 06:16:08
    Re: Using in-operator in dataverse list rows

    Hey @Expiscornovus ! Fetch XML works great. Thanks for your help 🙂

  • Verified answer
    Expiscornovus Profile Picture
    32,169 Most Valuable Professional on 14 Apr 2023 at 08:18:39
    Re: Using in-operator in dataverse list rows

    Hi @KimBim,

     

    As far as I can tell from the Dataverse Web API docs the IN operator is not listed in the filter capabilities:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-data-web-api#filter-results

     

    Maybe the Fetchxml query field is an option. I would suggest to try and add the array of values in there:

    https://learn.microsoft.com/en-us/power-automate/dataverse/list-rows#fetch-xml-query

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete