Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rAcAeEblsZCrPIdIIS+3J/
Power Apps - Building Power Apps
Unanswered

Issues with a Canvas App feeding into an Excel spreadsheet

Like (0) ShareShare
ReportReport
Posted on 25 Oct 2023 14:38:26 by 2

Hello,

I'm building my first Power App and have it connected to an Excel spreadsheet. I have three issues with this currently:

#1 - It seems that regardless of how I have the spreadsheet sorted, when I submit the form data from the Edit Form, it creates a new record at the bottom of the spreadsheet leaving all rows above it blank. I want to know how to correct this so that it uses the next available row (from the top) to create the record.

#2 - Along those lines, I have multiple screens in the app for entering data with each screen's fields mapped to their own fields on the spreadsheet. The problem is, when I click on the Submit button on each screen, it creates a new record (row) on the spreadsheet. I want to be able to combine all the data from all the screens (there are 5 total) onto one record (row) on the spreadsheet and I don't know how to do that.

#3 - Finally, I am using a date picker on one screen and have it defaulting to today's date. However, when I submit, it shows up in the spreadsheet as 1/1/1970. I'm not sure how to correct this.

Any help from this community would be much appreciated!

Thanks,

Eddie

Categories:
  • EWebber Profile Picture
    2 on 25 Oct 2023 at 15:26:05
    Re: Issues with a Canvas App feeding into an Excel spreadsheet

    Thank you SongYe! I might need a little more step-by-step on these though, if you can, as I am new to Power Apps and feeling my way around. I would sure appreciate it!

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on 25 Oct 2023 at 15:21:50
    Re: Issues with a Canvas App feeding into an Excel spreadsheet

    Hi @EWebber 

     

    I’ll try to help you with your issues as best as I can.

     

    #1 - This is a known limitation of the Excel connector. It appends new records to the end of the table, regardless of the sorting order or blank rows. I would suggest to use Power Automate to move the new records to the desired position after they are created. 

     

    #2 - This is because each submit button is using the SubmitForm function, which creates a new record in the data source. To avoid this, you need to use the Patch function instead, which allows you to update an existing record or create a new one if it doesn’t exist. You can use a global variable to store the record ID of the first screen, and then use it to patch the subsequent screens. 

     

    #3 - This is likely due to a mismatch between the date format in your app and in your Excel file. You need to make sure that both formats are compatible, such as using the same locale or time zone. You can use the Text function in Power Apps to format the date value before submitting it to Excel. You can also use the Format Cells option in Excel to change the date format of your column.

     

    If you have any questions or feedback, please let me know. Have a great day! 😊


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,751 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started