How could I inspect button-click event for informing trigger?

Hello,

There is special keyword, triggeredById, that you can use to identify which button was clicked.

triggeredById

Combined that with triggering query with additionalScope you can the same API request with different values depends on which button was clicked.

Note: triggeredById means it must triggered a query so transformer won't work in this case. However, as I mentioned above additionalScope will able to solve your use-case. You just have to go through a js query instead. Or you can even do in your API call {{ triggeredById === button1.id ? "value A" : "value B" }}

Hope that helps

2 Likes