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

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard