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 Apps / Check if record exist ...
Power Apps
Unanswered

Check if record exist with multiple criteria

(0) ShareShare
ReportReport
Posted on by 18

Hi All,

 

I'm trying to create an app where a user can populate these textboxes and search a Sharepoint list if such record exist. (As long as there are at least 1 identifier).

 

danielle365_0-1661257679033.png

 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    Yes you can check this using LookUp function 

    On select of Validate button

    If(IsBlank(LookUp(ListName, Lower(FirstName)=Lower(TextInput1.Text) && Lower(LastName) = Lower(TextInput2.Text) && ContactNumber = TextInput3.Text && Lower(EmailAddress) = Lower(TextInput4.Text)), Set(varMsg, "Record does not exist in Sharepoint"), Set(varMsg, "Record is there in SharePoint"))

    Replace TextInput fields with respective datacard values and you can your column names instead of FirstName, LastName, etc

     

    The above is used to check if exact record exists. You can replace && with || if you want to check for any column 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @danielle365 

    Yes, you can use all the criteria from your text input controls and look up that record.

    The formula would be similar to the following:

    LookUp(yourList,
     FirstNameColumn = FirstNameInput.Text && 
     LastNameColumn = LastNameInput.Text && 
     ContactNumber = ContactNumberInput.Text && 
     EmailAddress = EmailInput.Text,
     true
    )

    You can use this in a Visible property for a label as it is to show that it exists.

    Or you can use the formula in a Text property for a label to display the existence or not.

    Ex:

    $"Record {
     If(LookUp(yourList,
     FirstNameColumn = FirstNameInput.Text && 
     LastNameColumn = LastNameInput.Text && 
     ContactNumber = ContactNumberInput.Text && 
     EmailAddress = EmailInput.Text,
     true
     ),
     "exists",
     "does not exist"
     )} in SharePoint List"
    

     

    I hope this is helpful for you. 

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard