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 / PowerApps not updating...
Power Apps
Answered

PowerApps not updating Sharepoint, New Forms showing previous data, new form not creating new listing in Browse Screen

(0) ShareShare
ReportReport
Posted on by 17

Hi,

I am very new to PowerApps and I am currently on my second app. The first app works well, opens a new clear form when adding a form, saves all information to a sharepoint list and all completed forms are showing in the BrowseScreen.

On my second app which I have built in the same way, a new form comes up with previous data, I am using this

SubmitForm(EditForm1);NewForm(EditForm2);Navigate(EditScreen2,None).

I have also set my EditScreen to Reset On Visible

Also when entering completing forms, my Sharepoint list does not create a new entry, it just updates a previous entry and the new data entry does not show in the BrowseScreen. I just have one entry

 

Any help with these issues would be much appreciated

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Hi @AllyCrop ,

    I am not entirely clear on the process leading up to the new form you are then submitting and also the data source this form is based on. Normally, using the example that EditForm1 is connected to DataSource1 and you wanted to save a record, your would open the form with 

    Navigate([Whatever to the screen EditForm1 is one]
    NewForm(EditForm1)

    You would then save the form

    SubmitForm(EditForm1)
    Refresh(DatSource1)
    Navigate([Back to gallery])

    I would need to know the process you are implementing with 

    SubmitForm(EditForm1);NewForm(EditForm2);Navigate(EditScreen2,None)

    to understand where your issue may be. Can you please provide more detail on this.

     

  • AllyCrop Profile Picture
    17 on at

    I have one data source whcih has 25 columns. I have split this down so data is entered from 5 EditForms. I currently have each of the 5 forms submitting data when moving onto the next edit form

  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    OK @AllyCrop ,

    There is one thing I can think of you need to do.

    You should refresh the data source before going to EditForm2 otherwise you certainly will see the data that PowerApps knows about. So I will call the data source DataSource1

    SubmitForm(EditForm1);
    Resresh(DataSource1);
    NewForm(EditForm2);
    Navigate(EditScreen2,None)

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • AllyCrop Profile Picture
    17 on at

    I found that the reason power apps was not updating the sharepoint list was because there was a required field that was not in the app. Once that was in, it updated the browse screen and the sharepoint list. I had to put the required field on all forms.

    This issue I have now is my app has 6 edit forms and this is causing 6 entries into my sharepoint list, when I would like the 6 forms to feed into one entry.

    I am submitting all forms when all forms are filled in.

  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Hi @AllyCrop ,

    This certainly is possible with a Patch statement at the end of all the forms. Controls can be referenced from any screen, so can be included in the statement. This is the official document for Patch, however, there are better explanations - this video from Shane Young @Shanescows is probably one of the best.

    Essentially, you can control what is being written to the data source and a new record is simpler than updating an existing item.

    The syntax is

    Patch(
     DataSource,
     Defaults(DataSource)
     {
     Field1:ControlValue2
     Field2:ControlValue2
     etc etc
     }
    )

    Shane's video is a very good guide and you can certainly create one record with all your screen input using this function.

    Happy to assist further is required.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • AllyCrop Profile Picture
    17 on at

    So far I have this, are you able to check this for me please...

    Patch(Seasoning,Defaults(Seasoning),Table:DataCardValue14_1.Text,Reconcile:DataCardValue15_1.Text,ExtractionBin:DataCardValue16_1.Text)

     

    Data Source = Seasoning

    Column 1 = Table

    Column 2 = Reconcile

    Column 3 = ExtractionBin

    All 3 columns are a Yes/No toggle switch

  • Verified answer
    WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Thanks @AllyCrop ,

    You are missing a couple of "curly brackets" as below - otherwise fine

    Patch(
     Seasoning,
     Defaults(Seasoning),
     {
     Table:DataCardValue14_1.Text,
     Reconcile:DataCardValue15_1.Text,
     ExtractionBin:DataCardValue16_1.Text
     }
    )

    A couple of things I might suggest to make your PowerApps coding journey a little easier. Always use the Format Text option once you get some valid code - it makes it so much easier to find errors and generally check.

    Rename your datacards - I use the field name and the first letter of the screen name so on the Season Screen

    Patch(
     Seasoning,
     Defaults(Seasoning),
     {
     Table:TableS.Text,
     Reconcile:ReconcileS.Text,
     ExtractionBin:ExtractionBinS.Text
     }
    )

    Not only is it easier to check, the values auto-fill as you type (and you know the likely control value).

    Never however name a card the same as the field (or any field) - it causes all sorts of reference issues.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • AllyCrop Profile Picture
    17 on at

    Thanks for the help @WarrenBelz . I have finally got it to work using some of your hints and tips. My final solution is...

     

    Patch(Seasoning,EditForm1.LastSubmit,{Table:TableES2.Value,Reconcile:ReconcileES2.Value,ExtractionBin:ExtractionBinES2.Value})

     

    The Default(Seasoning) created 2 lines in my Sharepoint list as oppose to 1.

     

    Thanks again for your help

  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Thanks @AllyCrop ,

    I was following your syntax on that one.

    I am glad you have it going now.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard