Custom button in table row that runs script with row data

Is there any way to make a button / action link inside Knack that, when clicked, takes some values from another column in the table row (or from the details view of the object you're on) and makes a POST request to an external api? Or in general, add a custom button next to a row of data that does some stuff with the data from that row using custom js? I've been playing around with custom js inside the custom code tab with much success, but can't figure out how to work with data from a table row. Thanks in advanced for tips!