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 / PowerApp form for Shar...
Power Apps
Unanswered

PowerApp form for Sharepoint: OnNew loads previous cached new record

(0) ShareShare
ReportReport
Posted on by 12

Hi

When I select "New" to create a new record in my SharePoint list, the PowerApp form loads with the previously created record.

Refreshing the browser and then creating a new record corrects this problem.

I've added the following to my SharepointIntegration OnNew event 

Refresh('DataSource name')

The problem still persists.

What is strange is, if I edit a list item and then create a new record I don't have this issue, a blank new form loads as it should.

Any ideas?

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Plug a resetform(shareointform1) in onnew?
  • Basquiat Profile Picture
    12 on at

    Nope, still loading previous record from cache

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Then stick it in the form properties on success , failure. Should reset after form submission.
  • Basquiat Profile Picture
    12 on at

    Still same issue.

    If I refresh the browser before creating the 2nd record it's fine...very annoying.

     

    Tried another browser...also same issue.

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Do you only have one FormScreen? This would be the default set-up. If so, What is in the property of the OnNew in the SharePointIntegration control, what is in the Item property of the SharePointForm and what is in the OnSuccess property of the SharePointForm?

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Thinking it might be going back to edit form after a submit. Is there any newform(sharepointform1) anywhere on the onnew? Oils try after submit too, cause with a reset and in edit form mode it’ll show the item values that might be missing link.
  • Basquiat Profile Picture
    12 on at

    Hi Jeff.

    I have multiple screens. (5 at this stage)

    In the OnNew of the SharePointIntegration I have.

    Refresh('Data_source_name'); 
    NewForm(FormMain);
    Set(varFormMode,FormMode.New);
    Navigate(ScreenMain,ScreenTransition.None)

    varFormMode is a variable I set on the SharePointIntegration OnNew

    Set(varFormMode,FormMode.New)

     

    I have pretty much the same in all my Forms' Item property

    If(varFormMode=FormMode.New,Defaults('Data_source_name'),SharePointIntegration.Selected)

     And OnSuccess are no all the same for all Forms. But mostly have

    ResetForm(Self); RequestHide()

     

  • Basquiat Profile Picture
    12 on at

     I Have multiple screens, each with their own form..I'll trying adding the reset OnSuccess to each form

  • Basquiat Profile Picture
    12 on at

    still same issue.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Basquiat I am facing the same issue any Solution for that?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard