web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to compare created...
Power Automate
Unanswered

How to compare created by in two list.

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I want delete record from temp list based on users.

 

A list  ( temp)

Title     UserName   ID

Test1    Radhe        1

 

B list    (main)

Title     RequestBy   ID

Test1   Radhe          1

 

I want to check

if(UserName equal to RequestBy)

{

delete item.

}

else

{

not delete item

}

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at
    Re: How to compare created by in two list.

    Hi @Anonymous,

     

    I have made a test on my side, please make sure the UserName column and the RequestBy column are both single line of text column, and refer to screenshot below to create the flow:

    Capture.PNG 

    Please let me know if your problem could be solved.

     

     

    Best regards,

    Alice

  • Community Power Platform Member Profile Picture
    on at
    Re: How to compare created by in two list.

    I tried your way but not delete item.

    workflow run succesfully but not item deleted.

     

    please find screen.1-test.png1-test1.png

  • Verified answer
    v-yuazh-msft Profile Picture
    on at
    Re: How to compare created by in two list.

    Hi @Anonymous,

     

    Please go to the run history of your flow to see the Condition inside the "Apply to each" to check if the Condition value is run into the If yes branch.

     

    I afraid that the Condition is run into the if no branch in your flow.

     

    If your condition is run into the if no branch in your flow, please check if the value is equal in your condition.

     

    Best regards,

    Alice

  • Community Power Platform Member Profile Picture
    on at
    Re: How to compare created by in two list.

    Thank you so much.

  • Community Power Platform Member Profile Picture
    on at
    Re: How to compare created by in two list.

    Thanks so much for that diagram - that really helped - I was pretty much there, but was missing the part about the query fields being text fields.

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