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 Platform Community / Forums / Power Automate / Array filter struggles
Power Automate
Answered

Array filter struggles

(1) ShareShare
ReportReport
Posted on by 203
Hi Forum,
 
I'm hoping someone can help me here. I have a flow which monitors the results from a Microsoft Form Quiz. Every week it checks the form results (From Microsoft SharePoint List) reads passed entries into an array and reads failed attempts into a different array.

The aim is to send a reminder notification that a failed test needs to be retaken. I am trying to compare the two arrays so that if a failed test is re-taken and passed it is not included in the follow up notification. This is what I currently have:
 
1. Get failed tests from SharePoint list, and use the Select action to put the names into an array (failed tests).
2. Get passed tests from SharePoint list, and use the Select action to put the names into an array (passed tests)
3. Use Filter Array action from the failed test array, using filter query "failed tests does not contain passed test items":


But nothing is returned in the output?
Categories:
I have the same question (0)
  • Verified answer
    Valantis Profile Picture
    6,735 on at

    The issue is most likely in the Filter array step.

    You already have the failed tests array in the From field, so the filter should check each failed test item against the passed tests array. Right now it looks like the condition is comparing the wrong things, which is why the output is empty.

     

    try this:

    • keep failed tests as the input to Filter array

    • compare the current failed test item to the passed tests array

    • you do not need an extra Apply to each for this comparison

    Also make sure both Select actions return the same type of value. If one Select returns plain text names and the other returns objects, the comparison will not work. One more thing: Microsoft notes that this kind of text comparison is case-sensitive, so the names must match exactly.

     

    Best regards,


    Valantis


    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.



    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).



    🏷️ For follow-ups  @Valantis.



    📝 https://valantisond365.com/

     

  • Suggested answer
    11manish Profile Picture
    3,333 on at
    You need to filter the Failed array where the value does NOT exist in the Passed array.
     
    Conceptually:
    • RemainingFailed = FailedTests - PassedTests
    Correct Filter Array Configuration

    From
    Use the failed tests array:
    • body('Select_Displaynames_-_FAILED_tests')
    Advanced Mode Expression
    Click Edit in advanced mode and use:
    • @not(contains(body('Select_Displaynames_-_PASSED_tests'), item()))
  • Mattpst Profile Picture
    203 on at
     
    As soon as I read this "so the filter should check each failed test item against the passed tests array." it clicked and I realised my error! Thank you for giving me that nudge!

    Kind regards,
    Matt
  • Valantis Profile Picture
    6,735 on at
     
    i am happy that i was able to help. have a nice day :)
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard