Node.js Code
Use the Node.js Code action to add a custom Node.js code to your workflow.
Complete the following steps to use the Node.js Code action in your workflow:
1. Click and drag the Node.js Code action under the Developer Tools utility to the canvas, place the pointer on the action, and then click or double-click the action. The Node.js Code window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
3. In the code editor, add the custom Node.js code.
* 
Note the following points:
The supported Node.js modules are 'assert', 'crypto', 'path', 'buffer', 'events', 'http', 'https', 'punycode', 'querystring', 'string_decoder', 'url', 'zlib', 'request', 'lodash', 'soap', 'xml2js', and 'ws'.
To complete this action and export the output of this action to the next action, use $export(error, data).
* 
If the value of error is not equal to null, the action fails, irrespective of the value of data.
4. Click Done.
Output schema
Was this helpful?