How to Run a Query when a Table Row is Updated

click on the Advanced tab for that query and enter this:
image

now, anytime conversationsTable.selectedRow.id changes it will trigger this query. if the selected row id is not equal to the team id, disable the query and don't run it... if they are equal, we run the query.