grid action button custom

Hi, I have a scenarion, in which i have to add custom action to a grid while creating new I want to check whether the open box are available ,if not then ineed to show an error else redirect to create asset i have called a microflow which is working fine but problem is when i click on button without selecting record it shows select record is there any way to use button to call microflow directly without selecting? kindly help Thanks
1 answers

Yes there is, if you remove the input parameter from the microflow it won't use an input from the datagird. And therefore no selection is needed.