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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Automatically refresh ...
Power Apps
Suggested Answer

Automatically refresh Powerapp and return to Screen 1 after patching to Sharepoint.

(0) ShareShare
ReportReport
Posted on by 16
Hello
 
I have built an app to record various assets and maintenance schedules in different locations. The app is working and making records in Sharepoint as expected. Woohoo!
 
Now I'm trying to work out how to have the app automatically refresh and return to Screen 1 after patching the record to Sharepoint. 
 
Otherwise, is there any formula that will automatically move to a fresh screen following submission of the asset record? 
 
The app will be used by multiple people, and I would like to reduce the probability of duplicate entries. 
 
Hi . You very kindly helped me get this far. Do you have any advice for this next, and hopefully final step? 
 
Cheers
James
Categories:
I have the same question (0)
  • Suggested answer
    SebS Profile Picture
    4,811 Super User 2026 Season 1 on at
    there is few ways to do it 

    Option one if it's a form

    Refresh('The Assets List');
    ResetForm(frmAsset);
    NewForm(frmAsset);
    Navigate(Screen1, ScreenTransition.Fade);
    Notify("Asset record submitted successfully.", NotificationType.Success);

    option two if it's a patch

     
    IfError(
        Patch(
            'The Assets List',
            Defaults('The Assets List'),
            {
                Title: txtAssetName.Text,
                Location: drpLocation.Selected.Value,
                MaintenanceDate: dpMaintenanceDate.SelectedDate
            }
        ),
        Notify("Something went wrong. The asset was not saved.", NotificationType.Error),
        Refresh('The Assets List');
        Reset(txtAssetName);
        Reset(drpLocation);
        Reset(dpMaintenanceDate);
        Navigate(Screen1, ScreenTransition.Fade);
        Notify("Asset record submitted successfully.", NotificationType.Success)
    )
     
  • MarkRahn Profile Picture
    1,354 Super User 2026 Season 1 on at
    Based on what you are asking, @SebS has the right approach.
     
    When I am writing a reply, I always hit refresh to see if someone beat me to it. And @SebS did ;)
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
  • Suggested answer
    Kalathiya Profile Picture
    1,998 Super User 2026 Season 1 on at
     
    Glad to hear the app is working fine now.
     
    Sabs Approach is also correct. 
     
    Yes, after the Patch() you can simply add below things:
    #1. Refresh the SharePoint list
    #2. Reset the controls.
    #3. Navigate back to Screen 1
     
    IfError(
    
        Patch(
            'Assets List',
            Defaults('Assets List'),
            {
                'Maintenance Tasks':MainTasksCombo.SelectedItems, //If it;s single select choice then replace SelectedItems to Selected
                'Maintenance Frequency':MainFreqCombo.SelectedItems
            }
        ),
    
        Notify("Error while saving record", NotificationType.Error,2500),
    
        Refresh('Assets List');
        Reset(MainTasksCombo);
        Reset(MainFreqCombo); //Add all the controls here for Reset. 
        Navigate(Screen1, ScreenTransition.None);
        Notify("Record saved successfully", NotificationType.Success,2500)
    
    )
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

     
  • WarrenBelz Profile Picture
    155,288 Most Valuable Professional on at
    I will add something here - if your (I assume a) gallery on Screen 1 is based directly on the SharePoint list (not a collection), then you should not need to refresh the data source as all controls on a screen will reset and requery any data source they are linked to when opening the screen. If it is based on a collection, then you need to re-collect to get the updated data.
  • Ram Prakash Duraisamy Profile Picture
    5,795 Super User 2026 Season 1 on at
     
    You can achieve this by using below code after Patch
     
    Refresh(YourSharePointList);
    ResetForm(Form1);
    Navigate(Screen1, ScreenTransition.Fade)
     
    Please mark as answer if my suggestion helps.
    Subscribe here for More Useful videos : https://www.youtube.com/@rampprakash3991

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard