cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
radhe
Level: Powered On

How to compare created by in two list.

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

}

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to compare created by in two list.

Hi @radhe

 

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

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: How to compare created by in two list.

Hi @radhe,

 

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

radhe
Level: Powered On

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

Community Support Team
Community Support Team

Re: How to compare created by in two list.

Hi @radhe

 

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

View solution in original post

radhe
Level: Powered On

Re: How to compare created by in two list.

Thank you so much.

Highlighted
Cheason
Level: Powered On

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.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 338 members 5,863 guests
Please welcome our newest community members: