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

Notifications

Announcements

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
    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
    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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard