Hi @AB-03121629-0,
To allow users to edit a record from a Gallery and update the Dataverse table, we use a Power Apps Edit Form (out-of-box control) inside a popup container. The form is connected directly to the Dataverse table so it can automatically load and update the selected record.
1. Edit Button in the Gallery
When the user clicks the edit button, we store the selected gallery record in a variable and open the popup.
Set(varEditRecord, ThisItem);
Set(varShowPopup, true);
EditForm(frmEdit)
ThisItem represents the current gallery row.
2. Popup Visibility
The popup container is shown only when the variable is true.
Visible = varShowPopup
3. Edit Form Configuration
DataSource
'Your Dataverse Table'
Item
varEditRecord
This binds the form to the selected gallery record and automatically populates the fields with existing Dataverse data.
4. Save Button
When the user saves, the form updates the Dataverse record.
SubmitForm(frmEdit)
5. Close Popup After Save
Set the form OnSuccess property:
Set(varShowPopup,false)
This approach avoids creating individual input controls and Power Automate flows because the Edit Form handles loading, validation, and updating the Dataverse record automatically.
For more details refer: Edit form and Display form controls in Power Apps - Power Apps | Microsoft Learn
Article: How To Create A Pop-up Menu In Power Apps - Matthew Devaney
I hope this works!