Comment on page

Run code

The Run Code action node allows you to run Javascript code from your Apps - also towards third-party libraries.


You may add external Javascript libraries in Environment Config (Custom Header Tags). These libraries will be accessible from inside the Run Code.
Note that Run Code may run code asynchroneously. In order to tell Appfarm when the code is finished running, you always need to finish the code with resolve() (or reject())
An example setup of Run Code is showcased in our Showroom! You may view a demo, as well as access the setup in Appfarm Create. If you do not have access, you may register here.