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 / Get items from SP list...
Power Apps
Answered

Get items from SP list based on selection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a list of names in SP:

 

Name ID

John 1

Ed 2

Joe 3

 

Power app user can select name using drop down control. For example selection is Ed. How to retrieve ID based on the selection also?

If user has selected Ed, I then want to Patch Ed's ID (2) to another SP list. Is it possible to store ID as a variable?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Anonymous ,

    If you are asking how to extract the number from the end of the string, it would be (setting as a Variable)

    UpdateContext(
     {
     varMyID:
     Value(
     Right(
     'Name ID',
     Len('Name ID')-
     Find(" ",'Name ID')-1
     )
     )
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for answer but not exactly what I expected.

    Imagine having a large datatable (SP List in this case) Where using drop down I choose one item, for example name "Ed". How to get other items from same row, where I selected Ed. For example I want to use Ed's LastName too. And it exists in the same row as Name: "Ed". Just by selecting Ed, I now have options to use all items in a row for further actions.

  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Anonymous ,

    I am still a little unclear looking at your two posts, but if "Ed" is in a drop-down called ddFirst linked to the column FirstName in your list MyStaff, the Items of a Gallery would be

    Filter(
     MyStaff,
     FirstName=ddFirst.Selected.FirstName
    )
    

    and you could display all the related fields in the gallery.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard