You can't, at least not easily. Your action runs Server Side, while your question runs Client Side. What you could do as a work-around, is checking the existence of the record in an action that returns a boolean, and based on that boolean you have either an empty Confirmation Message on the button or the question. There's one catch: the action is run when the page is rendered, so if you need to react to input, you need to Ajax Refresh the button before the user clicks it (i.e. when the relevant data changes).
I understand that in your case this might not be feasible, as you are apparently importing and updating in one go, so you may need to do some trickery with hidden buttons and WidgetClicks etc. to get what you want.
I understand that in your case this might not be feasible, as you are apparently importing and updating in one go, so you may need to do some trickery with hidden buttons and WidgetClicks etc. to get what you want.