cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PawanKumar
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
AllanDeCastro
Advocate IV
Advocate IV

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
AllanDeCastro
Advocate IV
Advocate IV

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

Drrickryp
Super User II
Super User II

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,306)