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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Array not filte...
Power Automate
Suggested Answer

Filter Array not filtering

(0) ShareShare
ReportReport
Posted on by 2
Hi There,
 
I am trying to filter out by a choice column if the choice is either Won, or Lost, then using apply to each to send an email to the person that is assigned that opportunity.
 
The choice column name is "Status" but the actual name in Microsoft list is field_7

Screen Shot:
 
 
 
 
Here is a screen shot of the get items (which i know works because without filter array it just outputs all oppertunites to each account manager
 
 
Finally here is the apply to each with send an email (V2)
 
What am i missing,  why wont the filter array filter our Won or Lost opportunities?
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,695 Super User 2025 Season 2 on at
     
    Please try the following:
     
     
     
    @and(not(equals(item()?['field_7/Value'], 'Won')), not(equals(item()?['field_7/Value'], 'Lost')))
     
     
    field_7 is a choice column and is structured like this:
    {
        "field_7": {
            "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
            "Id": 2,
            "Value": "Won"
        }
    ...
    }
    
     
     
     
    Alternatively, turn off experimental settings, then edit the Get items action and add the following filter query:
    field_7 ne 'Won' and field_7 ne 'Lost'
     
     
     
     
     
     
    Ellis
  • AW-28111537-0 Profile Picture
    2 on at
    ,I tried the new filter array and it still will not filter out Won or Lost
    Screen Shot: 
     
    The second method i'm not sure how to work as I already have a filter query set for field_10 so that it reminds the account manager 7 days before expected close date of the opportunity
     
    Screen shot:
     
    I keep scratching my head on this one, just cant seem to figure it out.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 478 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 247 Moderator

#3
abm abm Profile Picture

abm abm 231 Most Valuable Professional

Last 30 days Overall leaderboard