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 / Edit form showing the ...
Power Apps
Answered

Edit form showing the same record all the time

(0) ShareShare
ReportReport
Posted on by 519

I need help with my Edit Form.  Somehow, no matter which record I edit, the edit form is showing data for the first record in my SharePoint list and not for the current record I am trying to edit.  I am not sure if there is some reset function or something that can be causing this.  I also created a deep link from my SharePoint list so that users editing items in the list, will open the form in PowerApps edit mode, and this also opens the app with the same record all the time.  Any help to fix this will be appreciated.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @joshieboy 

    What is the Item property of your EditForm?  This will determine what item it is editing.

  • joshieboy Profile Picture
    519 on at

    Hi @RandyHayes 

    The Item property is BrowseGallery1.Selected

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @joshieboy 

    So you're stating that you have a BrowseGallery1 that you click on an item and then, in the OnSelect of either the Gallery or some icon/button in your Gallery you have this: EditForm(yourFormName); Navigate(yourFormScreen)

     

    And the Item property of the Form is BrowseGallery1.Selected and you are NOT seeing that record?

  • joshieboy Profile Picture
    519 on at

    @RandyHayes 

    That is correct.  My EditRecord screen has one record saved into all of the fields, and it appears that whichever record I try to edit, displays this one record and not the values for the one I am editing at the moment.  I am not sure how to reset this so it displays the record in question. 

    The strange thing is I have a search screen canvas and the edit button OnSelect properties for it are:  EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.Fade) and this works well from that screen and opens the relevant record for editing, but I am trying to setup a work queue for users to see only those records assigned to them, and also use deep linking in SharePoint so that it can be opened in PowerApps from SharePoint.  The edit icon in my work queue has the same formula as above, yet it still displays the one record on the Edit form and not the current one being edited.

  • joshieboy Profile Picture
    519 on at

    @RandyHayes  - upon further investigation I am seeing that the edit form is showing the very first record stored in the SharePoint list.  No matter which record I try to edit from PowerApps, its taking the values of the very first record submitted.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @joshieboy 

    Try Lookup(Splist,ID=BrowseGallery1.Selected.ID) in the Item Property of the form.

  • joshieboy Profile Picture
    519 on at

    @Drrickryp  - thanks.  Still not working.  Are there any facilities to do a screen share of what I am doing?  

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @joshieboy 

    So you mention that the Item property is: BrowseGallery1.Selected

    And that this Works when you come from the search screen.  So, you then only have it set to get its Item from one place.

    If you're going to work with multiples, then I would suggest implementing a snapshot variable at this point.

    In the OnSelect action of all the Galleries in question, add : Set(glbCurrentRecord, ThisItem)

    Then set the Item property of your form to: glbCurrentRecord

  • joshieboy Profile Picture
    519 on at

    Thank you @RandyHayes - this worked.  Also, thanks all for the assistance and feedback on this item.  Appreciated.

  • Thomas_US Profile Picture
    13 on at

    @RandyHayes do you mean on the Gallery on select Property or on the buttons you add. I have the same issue. I have a gallery Gallery1 and added two buttons, edit button to edit the form and View button to view the form. I have also added another button on the view Form to navigate to the edit form. The edit button on the gallery works fine. But, when I click the view button and try to edit from there, it opens only one record whatever I am opening. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard