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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Filter Array

(0) ShareShare
ReportReport
Posted on by 28

 

I have two filter arrays in my flow. One is to filter out entries containing the consignee ID '18433BYH' and the other is to keep entries for the service provider 'OLIN'. I have added a condition where if the length of the resulting array is greater than 0, a table should be created and an email should be sent. However, I am facing an issue where the email I receive is blank despite having data in the table.    Filter array 3 - from value: outputs('List_rows_present_in_a_table_11')?['body/value'] ; Service Provider: outputs('List_rows_present_in_a_table_11')?['Service Provider ID'] is equal to OLIN_543484

Filter array 7 - From body('Filter_array') outputs('List_rows_present_in_a_table_11')?['Consignee ID'] is not equal to 18433BYH

Condition Length (body('Filter_array_7')) and Create HTML table body is body('Filter_array_7).

 

ui1568v_2-1711040758015.pngui1568v_3-1711040787660.png

ui1568v_4-1711040834307.png

Any suggestions!

Thanks

Categories:
I have the same question (0)
  • Tomac Profile Picture
    4,103 Moderator on at

    Starting with the basics - does your condition succeed when you run the Flow? Can you post a screenshot if the Flow results?

  • schmid1208 Profile Picture
    87 on at

    Hello @ui1568v

     

    I hope you’re having a terrific Thursday! I’m assuming here, since we don’t have the run results. But it appears your filters aren’t returning any data, so I’d start there. I say that, because your condition is checking for greater than or equal to 0. So, in instances where it returns nothing, it’ll still send an email because an array length equal to 0 is blank. 

    I hope this helps! Please accept this as the solution if it helped, or solved your issue.

     

    -Reid

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @ui1568v Although it may look like the Filter Array action can only take a single condition—it can take multiple conditions when using the Advanced Editing Mode. Using two Filter Array actions as you have above isn't necessary. In cover how to do that in this section of my YT Tutorial: Are you using the Microsoft Power Automate Filter Array Action wrong?

     

    In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly

    1️⃣ Cross-Referencing Data

    2️⃣ Filtering by Key

    3️⃣ Substring Matching

     

    Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.

     

    IN THIS VIDEO:

     3 Ways to Use the Filter Array Action

    How to use the Scope Action to Group Actions

    How to Check the Number of Items returned from a Filter Array Action

    How to Cross-Reference Data in Excel with a SharePoint List

     How the Filter Array Action Works

     How to Access the Dynamic Content from a Filter Array Action

     How to Filter Items by a Key

    How to Filter Items by Matching a Substring

    How to Use Multiple Conditions in a Filter Array Action

     

    ---

    Also, the Condition action isn't very helpful when it comes to troubleshooting. I would recommend adding a Compose action above your Condition action to store the length() expression so you can verify the number of items returned from your Filter Array action. 

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

  • ui1568v Profile Picture
    28 on at

    Hello, 

    Yes, the flow runs successfully.  

    ui1568v_0-1711061127316.png

    Previous flow run successfully, but not with filter array.  See below. 

    ui1568v_1-1711061216349.png

    ui1568v_2-1711061254295.png

    Thanks,

    Crystal

     

  • ui1568v Profile Picture
    28 on at

    Hello Reid, 

    Thanks for the advice.  I should still see data in the table, for example, see a previous table before I added the filter arrays.  

    ui1568v_3-1711061651365.pngui1568v_4-1711061682771.png

    Thank you for your help!

  • schmid1208 Profile Picture
    87 on at

    @ui1568v 

     

    Ah, I think see your problem. Can’t believe I didn’t say try this earlier. In your second Filter Array action clear out the dynamic content on the left side, and instead create an item() expression that looks for Consignee ID. It should look something like this: item()?[‘Consignee ID’]. 

    Now, you may need to put an underscore between consignee and ID, but try it first. 

    I have a feeling that’s your problem. 🤞🏻

  • ui1568v Profile Picture
    28 on at

    @schmid1208 

    I changed the expression to: item()?[‘Consignee ID’] and flow ran successfully, but still no data in the table.  See below where I should have data.

    ui1568v_0-1711119005277.pngui1568v_1-1711119033472.png

    ui1568v_2-1711119361985.png

    Thanks,

    @ui1568v 

  • schmid1208 Profile Picture
    87 on at

    @ui1568v, Huh, for some reason this run I see you put single quotation marks around the value you don’t want to include. Remove those, and see what happens. 

  • ui1568v Profile Picture
    28 on at

    @Tomac 

    Yes, the flow runs successfully but I should have an email with the table and data. 

    Filter Array 7: outputs('List_rows_present_in_a_table_11')?['Consignee ID']  is not equal to 18433BYH

    ui1568v_0-1711121772620.pngui1568v_1-1711121788812.pngui1568v_2-1711121800302.pngui1568v_3-1711121890781.png

    Thanks,

    Crystal

  • Tomac Profile Picture
    4,103 Moderator on at

    Can you show a screenshot of the Flow results? Even if the Flow completes without failing, I'm interested in seeing if your Condition action succeeds. That will point to the next debugging steps.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard