web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Form shows wrong item
Power Apps
Suggested Answer

Form shows wrong item

(0) ShareShare
ReportReport
Posted on by 431
So, I've used this guide to recreate a form from a list on one Sharepoint site to another. https://youtu.be/iS1FNNm8Pkk?feature=shared
 
"Everything" seems to work now, apart from one thing: when opening any item from the Sharpeoint list, the form always shows the item with the lowest ID (in my case, 22).
Example:
  1. I double click the item with ID 40.
  2. The form shows item with ID 22.
  3. I make a change, and save.
  4. The change is saved in item 22.
I have tried to compare everything to a OOB integrated Powerapps Shrepoint form, and everything looks the same. 
 
Any ideas?
 
Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at
    What code is in the Item property of the form?
  • Suggested answer
    MS.Ragavendar Profile Picture
    5,036 Super User 2025 Season 2 on at
     
    Power Apps SharePoint form is not correctly setting the Item property to the selected record. Right now, it's defaulting to the lowest ID (22) instead of the selected item.
     
    Go to the form’s Item property and ensure it is set to - SharePointIntegration.Selected
     
     
    However i used a different PowerFx I would suggest you to use SharePointIntegration.Selected
     
    Also in the Integration ensure this is correct as per the new requirement.
     
     
    If nothing works try refresh the data once and remove and add the data accordingly.
     
     
    I believe this will resolve your issue. 
     
    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
  • MM-05080756-0 Profile Picture
    431 on at
    @MS.Ragavendar, thank you!
    But the issue persists.
     
    I think this looks right? The new connected Sharepointlist is "Projektochbidrag".
     
    I have also removed, addeed and refresged the data source.
     
     
     
     
     
     
  • MM-05080756-0 Profile Picture
    431 on at
    @DJ_Jamba, sorry, I didn't see your reply until today.
    This is what it looks like. The new connected Sharepointlist is "Projektochbidrag".
    I have also removed, addeed and refresged the data source.
  • WarrenBelz Profile Picture
    153,136 Most Valuable Professional on at
    I will add a pattern I use on Integrated apps - note that the first/last really only applies in design mode - when playing you should get the selected record - I also prefer a direct lookup on the data source
    With(
       {_ID: SharePointIntegration.SelectedListItemID},
       If(
          !IsBlank(_ID),
          LookUp(
             Projektochbidrag,
             ID = _ID
          ),
          Last(Projektochbidrag)
       )
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard