Power Fx function
frm.LastSubmit — Power Fx function reference
Get the record just saved.
Syntax
powerfx
Form.LastSubmit
Examples
powerfx
frmEdit.LastSubmit.ID
→ New record’s ID
powerfx
Navigate(scrDetail, ScreenTransition.None, {locId: frmTask.LastSubmit.ID})powerfx
Notify("Saved task #" & frmTask.LastSubmit.ID, NotificationType.Success)Common mistakes & gotchas
- LastSubmit is only populated after a successful SubmitForm — reading it in OnVisible or before the first save returns blank.
- It carries server-generated fields (autonumber ID, Created, Modified), making it the reliable way to get a new record's ID rather than re-querying right after submit.
Related Power Fx functions
From Forms