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

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.

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,880)