Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Filter Array with another array

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow