Introduction
Edit forms can be used to edit or create new records. When doing so, users typically expect to see a confirmation when a form is submitted. One such example is getting the unique ID of the new record that was just submitted. To do so, use LastSubmit!
Tip - LastSubmit
In order to fetch the complete record that was just created (or edited), use the LastSubmit property. Once you submit a form, by say, using the SubmitForm function, you can fetch the last successfully submitted record with the help of the following expression:
FormName.LastSubmit
You can then store that record in a variable and access the values of any of the columns. To illustrate this, here is a quick demo:
To read more about the form control, click here.
Stay tuned for the remaining 14 tips!
Recent articles
- A-Z: 26 tips! Learn how to improve your Power Apps!
- Add Picture vs Camera Control – Who is the winner?
- Background images for Power Apps screens – the right way!
- Combo box or Dropdown? - Who is the winner?
- Delegation in Power Apps – How to identify and test!
- Edit vs Display – Which is the better form?
- Formulas – How to learn the 170+ Power Apps formulas?
- Galleries vs Data Tables – How to pick between the two in Power Apps?
- Hyperlinks – How to launch web pages & apps in Power Apps!
- Icons – How to increase performance!
- Jump start – How to speed up Power Apps dev with components!
- Keyboard – How to control the keyboard type on mobile
8 thoughts on “LastSubmit – How to fetch the last submitted record in Power Apps”