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 / [Beginner] - Creating ...
Power Automate
Answered

[Beginner] - Creating a flow for a list, that upon the creation of a new item, checks other list items for having the same email and then deletes the other items.

(0) ShareShare
ReportReport
Posted on by 10

Hello, i have recently started using power automate, to try to create a list i can use to send emails to a population, that arrives from a survey forms entry into the list.

 

What i have struggeling with, is creating a flow, that has the following logic.

When a new item is created, check the list for all other items with the same email and then delete the all the other items that had the same email as the new item, which would then hopefully result in the only list item being left with a given email, would be the newly created item.

 

As i am rather new to the use of power automate, I am not sure any of the toying around i have been doing, may be of much help, but so far i have created the following flow, which does not work.

If it would be smarter to make an entirely different flow, form the one i have below, i would love to hear the reasonings and practises behind it as well, so i can become mroe acquiesced with the good practises for using power automate when constructing flows.

 

FrederikBJorg_0-1703150992935.png

 

Thank you in advance

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @FrederikBJorg ,

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_2-1703152510132.png

    vyetonggumsft_4-1703152725640.png

    Best Regards,

    Sunshine Gu

  • FrederikBJorg Profile Picture
    10 on at

    Thank you for the reply.

     

    The flow seems to be working, in the opposite way than intended now, as when i add a new entry to the test list i have running with a similair entry, it deletes the new entries, not the older ones.

     

    Also, i wish to notify that Power automate automatically creates the second "for each" statement, whenever i try to include into the condition, the email for the item created and the email for the rest of the items from the list, gotten with the "get items".

     

    Should i not be using the emails from the created item and the gotten item?

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @FrederikBJorg ï¼Œ

    Please recreate the flow and correspond to my flow.

    Remember not to confuse the source of the 'ID' in the 'Delete item' control.

    vyetonggumsft_1-1703155614988.png

    Best Regards,

    Sunshine Gu

  • FrederikBJorg Profile Picture
    10 on at

    Thank you for assistance, this has solved the issues at hand.

     

    My issue with automatic creation of for each statements, were solved by creating a new flow where all things were done per inputs, from the top to bottom.

     

    Also i learned that the this will delete items in the emailing list with case sensitivity.

     

    You have been very helpful and thank you for your patience with me Sunshine Gu

     

    Have a good day and a great holiday season and new year.

    Best regards

    Frederik

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard