cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Advocate II
Advocate II

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

Highlighted
Community Support
Community Support

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

Highlighted
Advocate II
Advocate II

Re: How to compare created by in two list.

Thank you so much.

Highlighted
Anonymous
Not applicable

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (7,478)