How to close a select page when the user clicks Deselect All button?

I’ve got a select page for a reference set selector, which has a Deselect All (Clear selection) action button. I need the dialog to close and for all selected items to be deselected when the user clicks this button. It currently only deselects everything then the user has to click Confirm for the change to be made to the association. Is it possible for this to be done in one action?   It’s currently using the built-in selection functionality of the data grid 1.
1 answers

The ‘Deselect all button’ only clears the selection in the page, it does not change the association.

You'll have to create a microflow for this, setting the association to empty, and closing the page