Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

 

  • Verified answer
    rzainm Profile Picture
    107 on at
    Re: How to find if item already exists in Sharepoint list based on two conditions?

    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.

  • v-liwei-msft Profile Picture
    on at
    Re: How to find if item already exists in Sharepoint list based on two conditions?

    Hi @rzainm 

     

    Please try :

    CLIENTNAME

     

    Best Regards,

    Levi

  • rzainm Profile Picture
    107 on at
    Re: How to find if item already exists in Sharepoint list based on two conditions?

    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
    Re: How to find if item already exists in Sharepoint list based on two conditions?

    Hi @rzainm 

     

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

     

    Best Regards,

    Levi

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,942 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow