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
Unanswered

Edit form showing the first record all the time

(0) ShareShare
ReportReport
Posted on by 178

@RandyHayes Hello Randy and All,

I need help with the edit form.  there are two SharePoint lists

1. ListA: FormA. working fine.
2. ListB: FormB_1 & FromB_2. The SharePoint formB_1 and FormB_2 were customized via PowerApps, which has issue.
When users submit a new request with ListA (FormA), another new request for ListB (FormB_1 & FormB_2) was generated/copied by Flow in the backend.

No  Galleries. ListA works fine. ListB works until I added a new item to FormB_2, and published it. then when creating new records in ListA (FormA), no matter which record I open by clicking on the "Edit" button in the SharePoint listB, the edit form is showing data for the first record in my SharePoint list and not for the current record I selected. for the existing records, works fine.    

The Item property of forms (FormB-1 & FormB_2) is set to: 
If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First(ListName),SharePointIntegration.Selected)

 

I tried to change it to:

1. If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),

 LookUp(ListName,ID= SharePointIntegration.SelectedListItemID),

 SharePointIntegration.Selected)

 

2. If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),Defaults(istName),SharePointIntegration.Selected)

3.Last(FirstN(YOUR_LIST_NAME, SharePointIntegration.SelectedListItemID))

4,SharePointIntegration.Selected
5. Tried to add 

OnSuccess action of the formB_1 and FormB_2 : Set(glbCurrentRecord, Self.LastSubmit)
and changed the Form Item property to: glbCurrentRecord
(not working, I think because FormB_1 and FormB_2 were created by flow.)

 

Any help to fix this will be appreciated.

 

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @Linda777 ,

    This is a bug we struck a little while back on lists with some users when the view was grouped. To test this theory, ungroup (do not group) a list and see if it works.

    Also try

    With(
     {wID: SharePointIntegration.SelectedListItemID},
     If(
     wID > 1,
     LookUp(
     ListName,
     ID = wID,
     ),
     First(ListName)
     )
    )

    which should address a current bug on Delegation of SharePointIntegration.SelectedListItemID.

     

    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.

    Visit my blog Practical Power Apps

  • Linda777 Profile Picture
    178 on at

    Hi Warren, 

    I tried 

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

     LookUp(ListName,ID= SharePointIntegration.SelectedListItemID),

     SharePointIntegration.Selected)

     

    Not wroking.

    Thanks anyway.

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @Linda777 ,

    Did you try what I suggested?

  • Linda777 Profile Picture
    178 on at

    Hi Warren,

     

    I tried lookup below, it is not working.  

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

     LookUp(ListName,ID= SharePointIntegration.SelectedListItemID),

     SharePointIntegration.Selected)

     

    CanI ask where I should put your code to? thanks

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @Linda777 ,

    Where you have your code. Also try a SharePoint view that is not Grouped.

  • Linda777 Profile Picture
    178 on at

    Hi Warren,

    it is not grouped. it is not working thanks anyway.

  • tyanawhite Profile Picture
    2 on at

    Hi,

    I am having this exact same issue with 2 different PowerApps forms that use 2 different Sharepoint lists. Neither list is using any kind of grouped view. Any help would be appreciated!

     

  • Linda777 Profile Picture
    178 on at

    Hi, I just restore the previous version app. good luck!

  • natashagondi Profile Picture
    6 on at

    Hi,

     

    Did anyone find solution for this ? I am facing the same issue.

    Display form of all the items in the SharePoint list only displays the data of the first item.

    I have customized forms using PowerApps canvas App.

     

    Any help is greatly appreciated.

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Please post this as a new question.  You'll get more responses and others will be able to find the answer more easily later.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard