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 / "Except" Operation in ...
Power Automate
Unanswered

"Except" Operation in Flow

(0) ShareShare
ReportReport
Posted on by 22

Hi guys,

 

I'm just stuck and would appreciate your help.

 

I have two Sharepoint lists where I loop through and for each one I create an array (variable) with user IDs.

Let's say array A stores (all possible) 10 IDs and array B contains 7 IDs.

What I would like to get is a third array C where all IDs from array A are stored which are NOT in array B (in this case C would have 3 entries).

Is this possible without creating a for-each loop with another for-each loop inside.

 

I also tried one loop with the filter array action without any luck.

 

Thanks!

 

Categories:
I have the same question (0)
  • Gristy Profile Picture
    2,429 on at

    loop array b

    use the filter array action

    in the outputs if there is any add to array c

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Sevket ,

     

    Please refer to screenshot below to create the flow:

    1.png2.png3.png 

    The flow would run successfully as below:

    4.png

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-alzhan-msft , 

    Is there any other way to do an Except action? Doing a double Apply-to-each is non-intuitive. Also, I believe you'd have to perform another Apply-to-Each loop to determine which unique values are in the OTHER table.

    Just like we have Intersection and Union, we need Except. 

    Example:

    • Given two arrays, show which items exist in one and not the other

    This post has a nice example of Except: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Except-operation-in-WDL/idi-p/423351#M17791

  • v-alzhan-msft Profile Picture
    on at

    Hi @ericonline ,

     

    Have you made a test on it?

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard