Want to be able to change the success handler on a query by where they're called from

Hello! What i want is to be able to set the "Only run when" field on a success handler to only run when called by a specific component, is that possible? Am i able to access the metadata to see where the query was called from?

My situation is: i want a http query to not have a success handler when triggered from a JS Query, but to have one when called from a button.

Hi @Henrique_Silva,

You could try solving this by setting a variable or localStorage value just before calling the query, so the button could set the localStorage to fromButton: true and the JS could change it to false. You could use a second success handler to clear the value as well.