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 screen not displa...
Power Apps
Unanswered

Edit screen not displaying the right selected item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I've set up a PowerApps form as an integration with a SharePoint list and have 4 screens. 

  1. EditScreen - This is used as the NewForm and OnEdit properties (i.e. "NewForm(EditForm)" and "Navigate(EditScreen,ScreenTransition.None,{ID:ID_DataCard1.Default})")
  2. DetailScreen - This is used as the OnView property (i.e. "Navigate(DetailScreen,ScreenTransition.None,{ID:ID_DataCard1.Default})")
  3. ConfirmationScreen - This screen displays after an item has been successfully submitted into the list. 
  4. Gallery Screen - This screen is currently not being used but has been set up as a Gallery. 

All tests on the app work as expected, no problems. But if I go to the SharePoint list, right-click on an item and select Edit, it doesn't show me the item I had right-clicked. It shows me the very first item ever created on the list. I originally didn’t use a context in Navigate and the same thing was happening so I thought adding a context would fix this, but apparently not. 

I realise that using the gallery might be the best solution but I can't find any way to set this up as a view. And, I've tried logging out and back in but this doesn’t fix the issue. What am I missing? I appreciate any help/advice you can give. 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please share a bit more about your scenario?

    Do you custom a form for your SP list using PowerApps?

    Could you please share more details about the ID_DataCard1 that you mentioned?

    I have made a test on my side, and don't have the issue that you mentioned.

    Based on the formula that you provided, I think there is something issue with it. I have made a test on my side, please take a try with the following workaround:

    Set the Item property of the Edit form (SharePointForm1) to following:

    If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First('20190126_case3'),SharePointIntegration.Selected)

    Set the OnEdit property of SharePointIntegration control to following:

    Refresh('YourSPList');
    EditForm(SharePointForm1)

    Set the OnNew property of SharePointIntegration control to following:

    Refresh('YourSPList');
    NewForm(SharePointForm1)

    Set the OnView property of SharePointIntegration control to following:

    Refresh('YourSPList');
    ViewForm(SharePointForm1)

     

    In addition, please check and see if the following blog would help in your scenario:

    https://powerapps.microsoft.com/es-es/blog/separate-custom-forms/

     

    Best regards,

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-xida-msft

     

    Your first two questions are answered in the very first sentence of my original post. 

     

    Whenever a new item is created in a list, it is assigned an ID. I included it in the form as I thought I'd have to refer to it in the OnView and OnEdit properties - I've set its visibility to false so users can't see or change it. 

     

    In the part of the if statement, with what do I reaplce the '20190126_case3') in the First statement?

    First('20190126_case3')

    Thank you, this is very helpful. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard