Skip to main content
Community site session details

Community site session details

Session Id : E0WGGFlolTMZ86/WpMsGYm
Power Apps - Building Power Apps
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 30 Apr 2024 12:49:50 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:

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading complete