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 / Filter Array with anot...
Power Automate
Unanswered

Filter Array with another array

(0) ShareShare
ReportReport
Posted on by 28

I have a SharePoint List with 2 columns, AssignedID and CompletedID. ID values are stored in each of these in the following format "1,2,3,4". What I am trying to do is anytime a new ID is added to the CompletedID column, it must be removed from the AssignedID column. I have two array variables storing these columns values, varAssignedIDArray and varCompletedIDArray. 

varAssignedIDArray = "1,2,3,5"

varCompletedIDArray = "2,3"

 

Filter Result should be: "1,5"

 

Any variation I try either provides a result of null or "1,2,3,5". Can't seem to actually get it to filter. 

The attached screenshot is the best formula I can come up with. 

Help!! Thank you!

Capture.PNG
Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @dbeckemeyer 

     

    Here is the sample flow:

    ManishSolanki_0-1701400393306.png

    [
    1,
    2,
    3,
    5
    ]

    ManishSolanki_1-1701400444825.png

    [2,3]

     

    Next, add "Filter array" action to get the required array:

    ManishSolanki_2-1701400521288.png

    @not(contains(variables('varCompletedIDArray'), int(item())))

     

    The output of filter action:

    ManishSolanki_3-1701400583064.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard