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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Share Point Integratio...
Power Apps
Unanswered

Share Point Integration - Switch from Form View to Form Edit - Then Update item and Save

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a Share Point Integration Power App. The Item property for the Form and the OnveView property of SharePointIntegration are set to the following;

 

Form - Item - LookUp('NameOfList', ID = SharePointIntegration.Selected.ID)

SharePointIntegration - OnView - Set( selectedLookupItem,
LookUp( 'NameOfList',
ID=SharePointIntegration.SelectedListItemID ) );

Navigate(SharePointForm_View)

 

And my Form 'SharePointForm_View'  has its DefaultMode property set to the following;

 

If(Toggle_Update.Value = true, FormMode.Edit, FormMode.View)

 

This means that when I select an item in the SP List it will default to View mode each time (which it does). When opened in View mode I have a toggle (Toggle_Update) that when pressed switches to Edit mode (like in the code above). This is all working and I can toggle between the two states, however, when I try to save changes when in Edit mode the changes do not save and they go back to original state.

 

On my save button I have the following;

 

Patch('NameOfList', LookUp('NameOfList',ID = SharePointIntegration.Selected.ID),
SharePointForm_View.Updates
);

 

Once I get this sorted I'll look into then returning to View mode using 'ViewForm()'

 

I have no idea why it doesn't work and I have tried patching, SubmitForm() etc but with no joy. Any help appreciated. Thanks

Categories:
I have the same question (0)

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard