How to trigger a javascript transformer to rerun

Hi,

I am wondering if we can use a javascript query to trigger a javascript transformer to run? I tried transformer.run() and transformer.trigger() in the javascript query, but they both don't work.

Thank you!

Hey doris.I, happy to help with this :blush: JS transformers can't be triggered in the same way that a JS query can. JS transformers update when their input variables update and return a value that can then be referenced in your app.

Here are a couple of suggestions for your use case:

1) You could make your JS transformer into a JS query and trigger that query.

2) You could reference transformer.value to get the return value of your JS transformer.

I hope that clears things up for you :slightly_smiling_face:

Hi @everett_smith,

Thank you for the clarification!

4 posts were split to a new topic: Trigger JS query