CustomJS (Preview)
Execute custom JavaScript code in workflows with NPM module support. Generate PDFs, capture screenshots, transform data, parse files (CSV, XML, JSON, Excel), and integrate with any API. Secure execution environment. Get your API key at https://www.customjs.space
This connector is available in the following products and regions:
| Service | Class | Regions |
|---|---|---|
| Copilot Studio | Premium | All Power Automate regions except the following: - US Government (GCC) - US Government (GCC High) - China Cloud operated by 21Vianet - US Department of Defense (DoD) |
| Logic Apps | Standard | All Logic Apps regions except the following: - Azure Government regions - Azure China regions - US Department of Defense (DoD) |
| Power Apps | Premium | All Power Apps regions except the following: - US Government (GCC) - US Government (GCC High) - China Cloud operated by 21Vianet - US Department of Defense (DoD) |
| Power Automate | Premium | All Power Automate regions except the following: - US Government (GCC) - US Government (GCC High) - China Cloud operated by 21Vianet - US Department of Defense (DoD) |
| Contact | |
|---|---|
| Name | CustomJS Support |
| URL | https://www.customjs.space |
| h@customjs.io |
| Connector Metadata | |
|---|---|
| Publisher | TechnologyCircle GmbH |
| Website | https://www.customjs.space |
| Privacy policy | https://www.customjs.space/terms-and-conditions/ |
| Categories | IT Operations;Productivity |
CustomJS Connector
Publisher: TechnologyCircle GmbH
Execute custom JavaScript code with NPM module support in your workflows. Generate PDFs, transform data, parse files, and integrate with any API through secure JavaScript execution.
Prerequisites
To use this connector, you need:
- CustomJS account (sign up at https://www.customjs.space)
- API key from your CustomJS dashboard
Supported Operations
Execute JavaScript Code
Run custom JavaScript code with full NPM module support. Reference input data and return any result.
Use Cases:
- Transform JSON data structures
- Parse CSV, XML, or other file formats
- Perform complex calculations
- Validate data with custom rules
- Integrate with external APIs
Parameters:
Input Value(Optional) - Data to process in your JavaScript codeJavaScript Code(Required) - Your custom JavaScript code
Examples:
Simple Code (No Input):
Code: return "Hello from CustomJS!"
Result: Hello from CustomJS!
Current Date with NPM Module:
Code: const moment = require('moment'); return moment().format('MMMM Do YYYY')
Result: December 16th 2025
With Input:
Input: John
Code: return "Hello " + input + "!"
Result: Hello John!
JSON Transform:
Input: {"name":"john","age":30}
Code: const data = JSON.parse(input); return JSON.stringify({name: data.name.toUpperCase(), age: data.age})
Result: {"name":"JOHN","age":30}
HTML to PDF
Convert HTML content to professional PDF documents. No coding required - just provide HTML and get a PDF.
Use Cases:
- Generate invoices and receipts
- Create reports from HTML templates
- Generate certificates
- Archive web pages as PDFs
- Create printable documents
Parameters:
HTML Content(Required) - HTML markup to convert to PDF
Example:
<!DOCTYPE html>
<html>
<head>
<style>
body{font-family:Arial;padding:40px;}
h1{color:#2196F3;}
table{width:100%;border-collapse:collapse;margin:20px 0;}
th,td{border:1px solid #ddd;padding:10px;}
th{background:#2196F3;color:white;}
</style>
</head>
<body>
<h1>INVOICE</h1>
<p><strong>Invoice #:</strong> 2024-001</p>
<p><strong>Date:</strong> December 16, 2025</p>
<table>
<tr><th>Item</th><th>Qty</th><th>Price</th><th>Total</th></tr>
<tr><td>Service A</td><td>1</td><td>$100</td><td>$100</td></tr>
<tr><td>Service B</td><td>2</td><td>$50</td><td>$100</td></tr>
</table>
<p><strong>TOTAL: $200</strong></p>
</body>
</html>
Getting Started
- Sign up at https://www.customjs.space
- Generate your API key
- Add CustomJS connector to your flow
- Enter your API key when prompted
- Use Execute JavaScript Code or HTML to PDF actions
Support
- Documentation: https://www.customjs.space/docs
- Email: h@customjs.io
- Website: https://www.customjs.space
Version History
v1.0.0.16 (Current - December 2025)
Updates:
- Made Input parameter optional in Execute JavaScript Code action
- Input field now appears first, followed by Code field
- Improved user experience for code that doesn't require input
Features:
- Execute JavaScript Code action with optional input
- HTML to PDF action for simplified PDF generation
- NPM module support
- Secure execution environment
No Breaking Changes:
- Fully backward compatible with v1.0.0.15
- All existing flows continue working unchanged
v1.0.0.15 (December 2025)
New Features:
- Added "HTML to PDF" action for simplified PDF generation
- Clean Execute JavaScript Code action (input + code only)
Improvements:
- Simplified user experience
- Enhanced documentation with examples
- Better error handling
v1.0.0.11 (November 2024)
Fixes:
- Removed restricted keywords from description
- Updated compliance requirements
v1.0.0.10 (November 2024)
Initial Release:
- Execute JavaScript Code action
- NPM module support
- Secure execution environment
Privacy & Terms
Privacy Policy: https://www.customjs.space/terms-and-conditions/ Terms of Service: https://www.customjs.space/terms-and-conditions/
Categories
IT Operations, Productivity
Creating a connection
The connector supports the following authentication types:
| Default | Parameters for creating connection. | All regions | Not shareable |
Default
Applicable: All regions
Parameters for creating connection.
This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.
| Name | Type | Description | Required |
|---|---|---|---|
| api_key | securestring | The api_key for this api | True |
Throttling Limits
| Name | Calls | Renewal Period |
|---|---|---|
| API calls per connection | 100 | 60 seconds |
Actions
|
Execute Java |
Runs JavaScript code remotely via your CustomJS API key. The code can reference the input variable and use NPM modules. |
| HTML to PDF |
Convert HTML content to a PDF document. |
Execute JavaScript Code
Runs JavaScript code remotely via your CustomJS API key. The code can reference the input variable and use NPM modules.
Parameters
| Name | Key | Required | Type | Description |
|---|---|---|---|---|
|
Input Value
|
input | string |
User-provided input string that can be referenced in your JavaScript code. |
|
|
JavaScript Code
|
code | True | string |
JavaScript code to execute. Reference the input using the input variable. |
Returns
The result of the JavaScript execution
- response
- string
HTML to PDF
Convert HTML content to a PDF document.
Parameters
| Name | Key | Required | Type | Description |
|---|---|---|---|---|
|
HTML Content
|
htmlContent | True | string |
HTML content to convert to PDF |
Returns
Binary PDF data
- response
- binary
Definitions
string
This is the basic data type 'string'.
binary
This is the basic data type 'binary'.