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 / Like Dual Authenticati...
Power Apps
Unanswered

Like Dual Authentication - verifying info in data

(0) ShareShare
ReportReport
Posted on by 118

Hello,

I'm working using a button to look up 2 variables in a Sharepoint List

The 2 variables are:

  Student ID

  Security Code

When I click on the button, I'm want to go out and verify both

If it's TRUE then it will show in a display box.

 

here's an example

Jeffrey_H_0-1704489321524.png

 

I used this before when just looking for a Student ID = 'sbox - ID'

On Select = UpdateContext({varSearch:'sbox - ID'.Text})

 

Now I would like to add a second level of verification with the same search button.

On Select =

UpdateContext({varSearch:'sbox - ID'.Text});
UpdateContext({varSearch:'sbox - Security_ID'.Text})

 

I'm sure its fairly simple to accomplish this - please give suggestions.

Again, I am attaching an Excel file that has the data from the Sharepoint List:  [Student Thank You Cards for Donors]

I have also attached the app that I am creating.

 

After this works I will be looking at screens CheckOut_1 and CheckOut_2

My vision for CheckOut_2 is to scan the QR code next to the Fund and then send a command to the printer to print that address to a label printer.

Kinda outside of the norm, but it's a work in progress.  I would also appreciate suggestions for this but only after the Search button and lookup up is resolved on the 'Lookup Info' screen

Categories:
  • scalca Profile Picture
    on at

    are you trying to search for a student record based on student id and/or security code provided in search box ? 

    so records would show up in the gallery below ? 

    is there an error message ?

     

    this code snippet you proposed 

    On Select =

    UpdateContext({varSearch:'sbox - ID'.Text});
    UpdateContext({varSearch:'sbox - Security_ID'.Text})

    would end up to update the same variable varSearch, I think you need two different one in order to have the correct search query
    can you pls share the items property of the gallery below

  • Jeffrey_H Profile Picture
    118 on at

    Here's the Item's property I believe.

    Jeffrey_H_0-1704744989364.png

     

  • Jeffrey_H Profile Picture
    118 on at

    Did you have a moment to look at what I sent you yesterday ?

     

  • scalca Profile Picture
    on at

    LookUp returns always one record only if this is what you want.

    But this formula in your items property can't work.

     

    As I mentioned store Id and securiry code in two different variables e.g. varSecuritycode and varId

    Then LookUp('Students', 'security code column' = varSecurityCode || 'Id column' = varId) 

    With that you would retrieve the first record matching security code or id

    If you want all records use Filter()

  • Jeffrey_H Profile Picture
    118 on at

    it kinda works, but I would like to have both filters Student ID and Security Code to be filtered/searchable and only display in the gallery if both match in that record.

  • scalca Profile Picture
    on at

    then you have to use && instead of || 
    LookUp('Students', 'security code column' = varSecurityCode && 'Id column' = varId)

    or Filter() if you want all matching records to be returned instead of one only

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard