cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PAB
Advocate IV
Advocate IV

PowerApps Custom SharePoint Form Loading Different Items Data

I have a custom form created in powerapps and I followed the following steps at the following link: https://powerapps.microsoft.com/en-us/blog/separate-custom-forms/

So I have three screens: CreateScreen, EditScreen, NewScreen

 

I recently noticed that when I have an item selected say "Test Copy" meaning I have the row highlighted in my sharepoint list. And then I open a new item in the list called "Test" and click edit all it pull up some of the data from the "Test Copy" item and not the information in the columns for "Test"

 

Has anyone experienced this? What is the fix so that it always has the correct information in the fields for the item I select for edit all even if another item in the list is clicked on.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @PAB,

Could you please share a bit more about your issue?

The user @DavJaq has faced same issue with you, please check my response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/SharePoint-list-using-customized-form-Edit-sc...

 

On your side, please take a try with the following workaround:

Set the OnView property of the SharePointIntegration control to following:

Refresh('YourSPList');  /* <-- Add this formula */
Set(SharePointFormMode, "ShowForm");
ViewForm(ShowItemForm);
Navigate(ShowScreen, ScreenTransition.None)

Set the OnNew property of the SharePointIntegration control to following:

Refresh('YourSPList');  /* <-- Add this formula */
Set(SharePointFormMode, "CreateForm");
NewForm(CreateItemForm);
Navigate(CreateScreen, ScreenTransition.None)

Set the OnEdit property of the SharePointIntegration control to following:

Refresh('YourSPList');   /* <-- Add this formula */
Set(SharePointFormMode, "EditForm");
EditForm(EditItemForm);
Navigate(EditScreen, ScreenTransition.None)

please take a try with above solution I provided, then re-publish your custom form, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @PAB,

Could you please share a bit more about your issue?

The user @DavJaq has faced same issue with you, please check my response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/SharePoint-list-using-customized-form-Edit-sc...

 

On your side, please take a try with the following workaround:

Set the OnView property of the SharePointIntegration control to following:

Refresh('YourSPList');  /* <-- Add this formula */
Set(SharePointFormMode, "ShowForm");
ViewForm(ShowItemForm);
Navigate(ShowScreen, ScreenTransition.None)

Set the OnNew property of the SharePointIntegration control to following:

Refresh('YourSPList');  /* <-- Add this formula */
Set(SharePointFormMode, "CreateForm");
NewForm(CreateItemForm);
Navigate(CreateScreen, ScreenTransition.None)

Set the OnEdit property of the SharePointIntegration control to following:

Refresh('YourSPList');   /* <-- Add this formula */
Set(SharePointFormMode, "EditForm");
EditForm(EditItemForm);
Navigate(EditScreen, ScreenTransition.None)

please take a try with above solution I provided, then re-publish your custom form, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This seems to have solved my issue. I will continue to monitor and see if it continues to operate correctly.

Thank you for your solution @v-xida-msft

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,479)