Showing results for 
Search instead for 
Did you mean: 
Helper IV
Helper IV

on edit of list item of sharepoint list , it displays first item instead of current item

I have customized  sharepoint list and saved it and published it, when the list item is opened in edit mode , then the form displays the first item present in list,  how to solve it?

1)i have used refresh (datasource) but it does not work


Super User
Super User


What code is being used in the Item property of your Form?  Does it look similar to mine?  Please share your code.


If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First(your_SP_list_name),SharePointIntegration.Selected)


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

 written following code on item property  of sharepoint form


If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First([@testlist]),SharePointIntegration.Selected)


Is it possible you have not made any selection and that is why you are getting the FIRST record?  How does the user browse to your form?  Through a link or by clicking on the item in the SP list and then clicking edit? 


You'll notice that when this condition is True...


IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected)


...then this is the result






by clicking on the item in the SP list and then clicking edit

@Tejaswini1234  @Tejaswini12345 

What code is in the OnEdit property of your Sharepoint Integration?


Following code on onedit of sharepoint integration



Did you have a previous working version of the form?  If yes, can you roll-back?


Link To Relevant Forum Post

sharepoint integration datasource property: [@testlist]

On cancel  :ResetForm(SharePointForm1)

onEdit: EditForm(SharePointForm1)

OnNew: NewForm(SharePointForm1)

OnSave :SubmitForm(SharePointForm1)

OnView: ViewForm(SharePointForm1)

sharepoint form  datasource property: 

sharepoint form item property:[@testlist]

If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First(testlist),SharePointIntegration.Selected)

i have  just customized newly , i dont have any previous version of form

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors