Pragmatic Works Nerd News

Edit Last Submitted Record Canvas Apps [Building Power Apps In Microsoft Teams - Ep. 6]

Written by Matt Peterson | Aug 15, 2026

In Episode 6 of the "Building Power Apps in Microsoft Teams" series, Matt Peterson from Pragmatic Works demonstrates how to add functionality that allows users to edit previously created records within a Canvas App. This tutorial is designed to follow up on previous lessons where a confirmation screen was created to review the record before finalizing it. Now, the focus shifts to adding a feature that enables users to easily correct any errors in their input.

 

Key Takeaways

  • Adding a Correction Button: Matt shows how to implement a button to redirect users to a correction screen where they can modify their previously submitted records.
  • Using Form Controls for Edits: The correction screen features a form that pulls in the last submitted data, making it easy for users to review and update their records.
  • Form Handling in Power Apps: The tutorial demonstrates how to use Power Apps' 'Last Submit' functionality to reference and edit data, ensuring that changes can be made seamlessly without losing the original context.

Step-by-Step Guide

  1. Navigate to the Correction Screen: To start, Matt demonstrates how to set up a correction button. This button is linked to a new screen that will allow users to modify their previous entry. The button’s color is set to red to make it visually distinct from other buttons.
  2. Edit Mode Activation: On the correction screen, the form used to display the original data is set to "edit mode." To enable this, Matt configures the form to use the 'Last Submit' property of the original form to load the previously entered record.
  3. Cancel or Update Options: Two buttons are implemented—one to cancel the correction and return to the original screen, and the other to submit the updated record. The cancel button resets the form and returns it to "new mode" so the user can create a fresh record.
  4. Submit Record and Show Success Notification: After making corrections, the "Update Record" button is configured to submit the form. On successful submission, the app displays a success notification, confirming that the record has been updated.
  5. Return to Main Screen: Finally, after the update is successful, the app returns to the main screen, allowing the user to either view their updated record or continue creating new ones.

What’s Next?

In the next episode of the series, Matt will explore how to display and manage all previous records in the app. This will allow users to not only view the latest entry but also find and edit specific records, offering greater flexibility and functionality within the app.

Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Canvas Apps and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.