How to get row in which button was selected

Hi everyone,

I have a datagrid in which I have a button to edit one of the rows in my grid. When the button is clicked a modal pops up. My question is, how can I access either the data in the row or the index of the datagrid which was selected in order to populate the text in the modal.

I’ve attached pictures to show what my flow is.

I’d like to populate this modal with information from the datagrid.

Thanks everyone for your help.

You have the item.data exposed on the button with the row data. You can use a Change variable value to put this object into a variable and then use it in your modal.