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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard