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 / Pull information from ...
Power Apps
Unanswered

Pull information from MS List with a button

(0) ShareShare
ReportReport
Posted on by 2

Hi everyone,

 

I have a form set up with multiple screens right now which creates a new record on a SharePoint List. I want to give the option to enter an associated number and have the information pull up so the user can edit it. The only option I have seen is to create a gallery for the user to select which record they want to edit.

 

I want to keep the list of records out of the user's sight so they can only edit the record if they know the associated number to enter. I created the below screen. I want the user to enter the number, hit the button, and the related information will populate into the following screens which will then be patched to the record queried once completed. Not sure how to go about this. I need this text field to query the SharePoint List and pull the associated data.

 

zya696_0-1709609213196.png

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @zya696,

    To retrieve a record based on the associated number, you just need this:

    LookUp(Data,'Complaint Number'=TextInput_ComplaintNumber.Text)

    Note that if 'Complaint Number' is a Number type column, please try

    LookUp(Data,'Complaint Number'=Value(TextInput_ComplaintNumber.Text)​)
  • zya696 Profile Picture
    2 on at

    Thank you for the fast reply! I am new to PowerApps so I am still having a few problems.

     

    I added the LookUp function to the OnSelect field of the check mark button at the bottom. That makes plenty of sense. OnSelect of the button, the LookUp function will pull the data from the 'Complaint Number' column of the '[data list]' based on the text entered in the ComplaintNumberUpField text field. Since the complaint number will be alphanumeric, I kept it in text format.

    LookUp(
     'Adverse Event Escalation List',
     'Complaint Number' = ComplaintNumberUpField.Text
    )

    zya696_1-1709672553586.png

     

     

    Now how do I get the information pulled to populate into fields on the following screens? I do have a mix of date cards, text fields, dropdowns, and cascading dropdowns. Would I need to change the DataSource of the forms which come after this?

     

    zya696_2-1709673039791.png

     

  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @zya696,

    LookUp() function is only for Text/Default property of a text box control like Label/TextInput, not for behavior property like OnSelect.

    To populate a dropdown box, you could try to set the Default property as:

    LookUp(Data,'Complaint Number'=TextInput_ComplaintNumber.Text).ColumnName

    To populate a combo box, you could try to set the DefaultSelectedItems property as:

    Filter(Data,'Complaint Number'=TextInput_ComplaintNumber.Text).ColumnName​

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