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 / How to find if item al...
Power Automate
Answered

How to find if item already exists in Sharepoint list based on two conditions?

(0) ShareShare
ReportReport
Posted on by 107

This flow was working when there was only one condition (PO Number). If there the newly created item's PO number exist in the list, it will send an approval email. If there wasnt, it will be approved automatically. When I tried adding the other condition (both PO Number and Client Name), it doesnt work anymore. It will just approved automatically.

 

 
rzainm_1-1679898446396.png

My expression in Condition 2:

length(outputs('Get_items')?['body/value'])

rzainm_2-1679898532330.png

 

I am not really sure where I did wrong. I made sure the column names are correct based on the URL link.

 

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

    Hi @rzainm 

     

    Is Client Name a column name in SharePoint?
    Please use ClientName instead of Client_x0020_ Name in Filter query

     

    Best Regards,

    Levi

  • rzainm Profile Picture
    107 on at

    Hello @v-liwei-msft thank you for replying. It got an error when I used ClientName, saying the column name ClientName does not exist. 

    Column name for Client Name based on URL is supposedly

    rzainm_0-1679899929115.png

     

    I would also like to add that both PO Number and Client Name are lookup columns from different lists.

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

    Hi @rzainm 

     

    Please try :

    CLIENTNAME

     

    Best Regards,

    Levi

  • Verified answer
    rzainm Profile Picture
    107 on at

    I was able to get this flow working by just changing PO Number Value and Client Name Value to PO Number Id and Client Name Id. For Lookup columns, I think it will look at its ID and not the value itself.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard