cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ebraga
Helper III
Helper III

SP Integration- Edits not updated 'on save' unless web page is physically refreshed

Hello All,

 

The 'Save' button on my PowerApp includes a patch function (I have multiple forms on one page) and a refresh('nameofdatasource')

 

Patch('PCAR- Testing',If(Form1.Mode=FormMode.Edit,SharePointIntegration.Selected,Form1.Mode=FormMode.New,Defaults('PCAR- Testing')),Form1.Updates,Form2.Updates,Form3.Updates);Refresh('PCAR- Testing')

 

However, when edits are made and the save button is used, the edits are not shown with the new information in the SharePoint list unless I physically refresh the web page. (Using Edge)

 

Side note, I noticed when list items are deleted, they still show in the list until the page is refreshed again. It is something in my function that I am doing incorrectly or might this have to do with something in the SharePoint list settings?

 

Sincerely, A PowerApps Newbie

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @ebraga ,

 

This is expected behavior. You could try to workaround this by setting additional launching of this list page like:

 

Patch('PCAR- Testing',If(Form1.Mode=FormMode.Edit,SharePointIntegration.Selected,Form1.Mode=FormMode.New,Defaults('PCAR- Testing')),Form1.Updates,Form2.Updates,Form3.Updates);Refresh('PCAR- Testing');Launch("xxxx")

 

xxxx is the URL of your list site.

 

Notice that Refresh function only refresh the data source inside PowerApps so that the data in this app is the newest version.

 

Regards,

Mona

 

 

Community Support Team _ Mona Li
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
SeanHenderson
Impactful Individual
Impactful Individual

Hi @ebraga 

I'm afraid this is a SharePoint issue, as SharePoint lists aren't live web pages that are auto-refreshing.

 

---
Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

v-monli-msft
Community Support
Community Support

Hi @ebraga ,

 

This is expected behavior. You could try to workaround this by setting additional launching of this list page like:

 

Patch('PCAR- Testing',If(Form1.Mode=FormMode.Edit,SharePointIntegration.Selected,Form1.Mode=FormMode.New,Defaults('PCAR- Testing')),Form1.Updates,Form2.Updates,Form3.Updates);Refresh('PCAR- Testing');Launch("xxxx")

 

xxxx is the URL of your list site.

 

Notice that Refresh function only refresh the data source inside PowerApps so that the data in this app is the newest version.

 

Regards,

Mona

 

 

Community Support Team _ Mona Li
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

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 (3,116)