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 / Cannot Delete items fr...
Power Automate
Unanswered

Cannot Delete items from LIst

(0) ShareShare
ReportReport
Posted on by 2

hello Team,

I am trying to make a flow which does the following:

1. Gets the Group Members from Azure AD

2. Get the items from the sharepoint list.

3. If the user already exists, it should skip it, if it does not exist, then it shud create the object in the list.

4. This is where i am stuck  - If the user is NOT there in the Group members, but IS there in the Sharepoint list, then the flow should delete that object from the list.

 

The flow looks some thing like this.

Screen Shot 2021-04-05 at 5.53.08 PM.png

 

Now, i have tried mutilple things, i even created a separate flow which runs after the first above flow, to check if the items existing in the list are there in the group, if not, then delete. But for some reason, either the entire list gets wiped out or i get the diference.

 

In more simpler words:

The problem is as follows:

Group 1 has following uses:

User1, User2, User3, User4, User5.

 

If I will run the flow, it will create the list based on the above users.

 

Now lets say, I remove User2,  and add User6 to the group and I run the flow again, the list will contain following users:

 

User1,User2,User3,User4,User5,User6.

Due to this, i cannot complete my task. Please need urgent support on this.

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Hesanjaved1986 

     

    An alternative option for you is to create a except on the two arrays of list items and guests.  I have detailed a quick way to perform an except here using a filter array action. 

     

    Once you have your two filter arrays, you can run an apply to each on both groups, one to add a new user and another to delete from list.

     

    Hope that makes sense.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard