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 / Data overwriting the f...
Power Apps
Answered

Data overwriting the first record instead of appending

(0) ShareShare
ReportReport
Posted on by 149

Hi,

 

I have a very simple app with an Excel workbook as the data source.  When I generate a new record via the app it overwrites the first record in the Excel workbook rather than appending it to the bottom of the table, does anyone know why this would be and how I can fix it?

 

Many thanks,

Alan

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @AlanR 
    Please provide all information needed to replicate your issue.  Its pretty hard to know why something is happening if you don't give any code or screenshots.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • AlanR Profile Picture
    149 on at

    Hi @mdevaney , thanks for taking the time to look at this and reply.  I have attached an Excel file with some screen captures that hopefully explain the problem.  Please let me know if you have any ideas!

     

    Alan

  • mdevaney Profile Picture
    29,993 Moderator on at

    @AlanR 

    Sorry, but I don't want to download an Excel file onto my PC.  Please explain it in a message instead.  Take screenshots if necessary.

  • AlanR Profile Picture
    149 on at

    Hi @mdevaney , no problem, can't be too safe.  Hopefully the attached screen shot works.

     

     

     

    AR Append Problem.JPG
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @AlanR 
    Ok, got it, thanks!  To write to a newline your form must be changed to 'New' mode.  Put this code in the OnSelect property of a button.  Then submit the form to see the result.

     

    NewForm(EditForm1)

     

    Additionally, you could also change the DefaultMode of EditForm1 to this code

    FormMode.New

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • AlanR Profile Picture
    149 on at

    @mdevaneymany thanks!  I wont get a chance to implement your suggestions until Monday but will but will relay when I do, just wanted to say thanks for the quick help!

     

    Alan

  • mdevaney Profile Picture
    29,993 Moderator on at

    @AlanR 
    Ok, awesome.  I am 100% sure the code will work if you put it in the right place.

     

     

    The community support team (paid Microsoft employees) tend to add additional comments to a thread if its left for a few days. Just ignore them and we'll continue working on the issue together, lol.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

     

  • AlanR Profile Picture
    149 on at

    Absolutely @mdevaney , I am all for community support 😊

  • AlanR Profile Picture
    149 on at

    Hi @mdevaney , thanks again for the help.  I tried both of your suggestions today.  The first one, with the additional button, works great.  The second solution, (changing the defaultmode on Editform1 to FormMode.New), worked when I first changed it but when I added a second record it overwrote the first record in the worksheet again.  Looking at the defaultmode of editform1 its value is "New" but when I click on the formula bar it shows as "FormMode.New" - is this normal?  

     

    I would also really value your opinion on a new issue.  I have a list of items, (screen shot attached), I want to allow the user to select multiple, non-current items from this list and save them to a single record instance.  I was thinking a drop down would be the best way to display the list but can you select multiple non-concurrent items in a drop down?  If not could you suggest an alternative?  Checkboxes might work but then the form would be so long it would be almost unworkable.

     

    Many thanks,

    Alan

    AR List Problem.JPG
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    After a new form is submitted the form changes mode to edit. Try going to the OnSuccess property of the form and resetting it. If your default form mode is new it should reset it to new.

     

    Form Control > OnSuccess > ResetForm(EditForm1)

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard