Updating same values for multiple selections in Grid View

Hello All, Could someone please give me some suggestions on how to solve this issue :  Consider the simple scenario below with only one entity Employee:  I have enabled simple multi selection in grid view in my home screen. I would like to change the Department of 5 Employees that have been selected from the grid view in the edit screen.  Any suggestions related to this would be a great help.
1 answers

Create a custom button and attach a microflow to it. With multiselect on you can pass the list to this microflow. Now you need to attach the right department to the people in the list. If the datagrid is inside the dataview of the department you can also pass this department as parameter to the microflow. Other sollution would be to use a reference set selector to add users to the department.