Help with Deleting a Single Row of Data from Database and Datagrid via Microflow

0
Hi, We're trying to delete a single row from a Data Grid using a single-select option and a delete button. Previously, the row was removed from the Data Grid but not from the database. We now want to use a microflow for this instead of the Delete on Click event of the Delete button. However, we're facing issues ensuring that the microflow only deletes the selected row rather than all data. Could someone assist us with this? Thanks!  
asked
3 answers
0

Hi Lee,

You can add an action button on the datagrid, and set the selection type to single select, and then in the microflow, use the parameter of the object, and then delete it and refresh.

THis way, the selected object will only be deleted.

 

Let me know, if you face any issues,

Hope it helps!

answered
0

In your DataGrid settings you need to set the option 'Selection mode' to Single selection. Then, if you add a button with a Microflow action in the Data Grid control bar, you can use a single object parameter and add a delete action for that object. If you include a refresh in the delete action you will see it removed in the client as well

answered
0

Hi Lee,

 

Adding some screenshots to support the above answers. 

 

Single-Selection: Go to the General Section of the Data grid and select the selection mode to Single Selection.

 

image.png

 

2. Right-click on the Place next to Edit button and add an action button; select Delete object in the OnClick Action; and make sure you have the Delete Objects checkbox enabled in the Entity Settings.

 

3. Add an Action button by following the above steps and selecting the on-click action event to call a microflow and create a new microflow. The microflow will now have an object as a parameter; if not present, you can add it manually from the toolbar above. Add the Delete object activity from the toolbox and select the object ( the one that passed a Microflow Parameter) and then also select the Refresh in Client option in the Delete Objects Activity.

 

image.png

 

image.png

 

ATB!!

answered