cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

How to get SharePoint list data on powerapp screen?

Hello,

 

I create user list in SharePoint List and used this as a data source in power screen.  I am able to pull the data source data in Power App screen in Gallery.

adsd.png

But I want to pull the data in Edit screen without using Gallery or Forms. I created the screen as below without form and Gallery. I pull the data source data in collection on screen visible. Can anyone please advise how I can show the particular's record data click (from first screen) in edit screen(second screen)?

PawanKumar_0-1602944495276.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate III
Advocate III

Re: How to get SharePoint list data on powerapp screen?

Hello PawanKumar,

You have two solutions to do this:

  • On the editing form you can refer directly to the selected record by using the gallery name on the first screen and then .Selected.
  • On the Gallery OnSelect, you can, before navigating to the second screen, add a Set variable (varSelectedRecord, ThisItem). This will allow you to refer to it on the second screen.

View solution in original post

2 REPLIES 2
Highlighted
Advocate III
Advocate III

Re: How to get SharePoint list data on powerapp screen?

Hello PawanKumar,

You have two solutions to do this:

  • On the editing form you can refer directly to the selected record by using the gallery name on the first screen and then .Selected.
  • On the Gallery OnSelect, you can, before navigating to the second screen, add a Set variable (varSelectedRecord, ThisItem). This will allow you to refer to it on the second screen.

View solution in original post

Highlighted
Super User III
Super User III

Re: How to get SharePoint list data on powerapp screen?

Hi @PawanKumar 

If you are not going to use an gallery or edit form to select and display a record, you have to have a way to Identify the data source and the individual record you want to use.  You can do this with individual controls placed on a blank screen.  If you have a collection created from a data source, you can use a dropdown or combobox control to select a record.  Then, in all of the remaining controls you can set the Default property of that control to display a value for some other field in that record.

Lookup(CollectionName,ID=Dropdown1.Selected.ID,FieldName)

 To save any changes to that record, you would use the Patch() function.  You could patch the collection (this would be temporary) or patch the underlying datasource that the collection is based on.  You would then need to recreate the collection using ClearCollect() to take advantage of the changes.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,415)