Toggle Side Panel
Cyclr Community
  • Forums
  • Tutorials
  • Documentation
        • User Documentation >>
          • Introduction to Cyclr
          • API Guides
          • How to use Connectors
          • Navigating the Cyclr ConsoleLearn all about your Cyclr Console and configuration
          • Embedding Cyclr in your SaaS
        • View More...
        • Connector Guides >>
          • Salesforce
          • Microsoft
          • GitHub
          • HubSpot
          • Oracle NetSuite
          • Stripe
        • View More...
  • Resources
    • New Features
    • Cypher
    • DevOps Services
    • Changelog
    • Support Portal
    • Referral Program
    • Blog
    • News Archive
More options
    Sign in
    Cyclr Logo
    Cyclr Logo
    • Forums
    • Tutorials
    • Documentation
          • User Documentation >>
            • Introduction to Cyclr
            • API Guides
            • How to use Connectors
            • Navigating the Cyclr ConsoleLearn all about your Cyclr Console and configuration
            • Embedding Cyclr in your SaaS
          • View More...
          • Connector Guides >>
            • Salesforce
            • Microsoft
            • GitHub
            • HubSpot
            • Oracle NetSuite
            • Stripe
          • View More...
    • Resources
      • New Features
      • Cypher
      • DevOps Services
      • Changelog
      • Support Portal
      • Referral Program
      • Blog
      • News Archive
    Close search
    Home » User Documentation » Connectors » Custom Connectors » Scripting » Scripting Introduction

    About Cyclr

    6
    • Introduction to Cyclr
    • Minimum requirements
    • Glossary
    • Errors
    • IP Allow List
    • Legal notices

    Cyclr Console

    14
    • Partner Console Dashboard
    • The Builder
    • Reports
    • Console Configuration
    • General Settings
    • Notifications
    • Embedding Customization
    • Security settings
    • Data retention settings
    • Custom Service Domains
    • Handle transaction errors
    • Payload Size Limitations
    • Performance tips
    • GitHub Integration

    Connectors

    38
    • Introduction to Connectors
    • Connector Installation Overview
    • Connector Settings
    • Handling Connector Releases
    • Connectivity Comparison
    • Connector Guides
    • Application Connectors
      • Introduction to Application Connectors
    • Utility Connectors
      • Introduction to Utility Connectors
      • Counter Storage
      • Cross Updating Preventer
      • Data Tools
      • Entity Cross Ref Storage
      • Generic File
      • Generic File Downloader
      • Generic Form
      • Generic Webhook
      • Data Storage
        • Introduction to Data Storage
        • Global Data Storage
        • Global Object Storage
        • Cycle Data Storage
        • Cycle Object Storage
    • Custom Connectors
      • Introduction to Custom Connectors
      • Methods
      • Triggers
      • Last Successful Run Date
      • Parameters
      • Data Types
      • Paging
      • Custom Objects
      • Dynamic Custom Fields
      • Automatically Install Webhooks
      • Connector Standards
      • Settings
      • Custom Connector Authentication
      • Rate Limits
      • Scripting
        • Scripting Introduction
        • Scripting Events
        • Scripting Functions

    Templates

    17
    • Introduction to Templates
    • Template Settings
    • Create a Template
    • Tools
    • Connectivity Tools
    • Field Mappings
    • Add Custom Fields
    • Custom Object Method Categories
    • Test Scripts
    • Collection splitting
    • Pass data between two steps
    • Test a template
    • Template versioning
    • Introduction to Cycles
    • Stop a cycle
    • Copy Cycles as Templates
    • Import or Export Templates

    Accounts

    7
    • Introduction to Accounts
    • Account Users
    • Sub Accounts
    • Connector Authentication Link
    • Export or Import Cycles
    • Account-level OAuth Client Credentials
    • Securing Cyclr Webhooks

    Embedding

    17
    • Introduction to Embedding
    • ORBIT
    • Installing a Partner Connector
    • Embed Cyclr in an iFrame
    • LAUNCH
      • Introduction to LAUNCH
      • User Experience
      • Customize Appearance
      • Build Compatible Templates
      • Handle LAUNCH callbacks
      • Deploy LAUNCH
    • Marketplace
      • Introduction to Marketplace
      • Set up a Marketplace
      • Styling Marketplace
      • Deploying a Marketplace
      • Marketplace Callback
      • Marketplace Webhook Callback
      • Marketplace Settings

    API

    19
    • Introduction to the Cyclr API
    • Authentication
    • Authorize Account API calls
    • Install Connectors into an Account
    • Install a Cycle from a Template
    • Step Setup
    • Activate a Cycle
    • Install Connectors
    • Create an Account
    • API Example Walkthrough
    • Connector Authentication
      • Introduction to Connector Authentication
      • API Key Authentication
      • HTTP Basic Authentication
      • OAuth Authentication
    • Data on Demand
      • Introduction to Data on Demand
      • Get Account Connectors
      • Get Connector Methods
      • Call a Connector Method
      • IP Restriction

    Deep Data Ingestion

    3
    • Vector Databases Introduction
    • Preparing and Ingesting Data into Vector Databases
    • Querying & Retrieving Data from Vector Databases

    Near Real-Time Actions

    6
    • Generic Webhook
    • Introduction to Data on Demand
    • Get Account Connectors
    • Get Connector Methods
    • Call a Connector Method
    • IP Restriction

    MCP Servers

    2
    • Introduction to MCP Servers
    • MCP Server Templates

    Release Notes

    35
    • Introduction to Release Notes
    • 2026
      • 2026-02
      • 2026-01
    • 2025
      • 2025-11
      • 2025-10
      • 2025-09
      • 2025-08
      • 2025-07
      • 2025-06
      • 2025-05
      • 2025-04
      • 2025-03
      • 2025-02
      • 2025-01
    • 2024
      • 2024-12
      • 2024-11
      • 2024-10
      • 2024-09
      • 2024-08
      • 2024-07
      • 2024-06
      • 2024-05
      • 2024-04
      • 2024-03
      • 2024-02
      • 2024-01
    • 2023
      • 2023-12
      • 2023-11
      • 2023-10
      • 2023-06
      • 2023-05
      • 2023-04
    • Archive
      • Archive
      • 2022
      • 2021
    View Categories
    • Home
    • Documentation
    • Connectors
    • Custom Connectors
    • Scripting
    • Scripting Introduction

    Scripting Introduction

    2 min read

    Cyclr supports JavaScript as its scripting language, allowing you to manipulate data before it’s sent as well as after it’s been retrieved. This can be useful when moving data between applications as what’s valid in one, may not be valid in another – sometimes data just doesn’t quite “fit” so requires some transformation.

    Jump to Scripting reference pages:

    • Scripting Events
    • Variables and Event Handler Functions table
    • Scripting Functions

    Inline Script #

    Inline Script is typically used to make small changes to individual pieces data directly in a Field Mapping, which would be within the Builder through a Step’s Step Setup popup.

    As an example, below we’re dynamically setting the name of a CSV file being uploaded to an FTP server to the current date and time using the Moment.js library which is available within Cyclr’s Script engine:

    For Inline Script, you must prefix the JavaScript code with “=” (an equals sign), e.g.:

    =(100 * 2)

    or

    =`[Mergefield]` === '' ? 'no value' : `[Mergefield]`;

    It’s best to use ` characters (backticks) around string values being merged in, as they will prevent line breaks or any quote characters from breaking your Script.

    Note: The [Mergefield] above represents fields inserted by Cyclr in Step Setup when choosing Type a Value and selecting one from the dropdowns.

    If you’re finding your inline script is becoming complex, or it’s being used on multiple fields, you may want to consider using Step Script instead. Beyond the added readability, there can also be a performance advantage as fewer instances of Cyclr’s Script Engine are used.

    Step Script #

    Step Script can be used when you want to want to make more complex changes to data.

    If you’re working on a Template or Cycle in the Builder and need to perform a change to some data, click the Step Setup button on a Step, then expand the Advanced Settings area and enter some Script to tie in to Cyclr’s Events as described below:

    This is generally easier to read than multiple inline scripts and there can be a performance advantage to using one set of Step Script instead of multiple Inline Scripts.

    Connector Script #

    If you’re building a Custom Connector you also have the option to add script directly into the Connector’s definition.

    This is done in the Script section of the Connector toolkit, either at the Connector-level or within individual Connector Methods.

    Limitations #

    • Script used in Event Handler functions will execute for a maximum of 60 seconds before Cyclr times it out and returns an error.

      Exceptions to this are:
      • after_action – times out after 90 seconds and runs separately for each page of data retrieved.
      • after_action_paging – times out after 90 seconds multiplied by the number of pages of data retrieved, e.g. if Cyclr retrieved 2 pages of data through paging, the after_action_paging function would be given 180 seconds to execute before timing out.
    • External HTTP requests: for security reasons, Cyclr uses the same authentication method as the Connector and the same authentication value when the Connector was installed by the user. You cannot use the script to access or modify the authentication value.
    • The cycle_variables object is not available to Inline Script. Use Script placed on a Step’s Advanced Settings area instead. Also, any changes made to that object or its properties are not persisted.

    Further Reading #

    See the following pages for more on Scripting as well as reference pages for Event Handlers and other Functions:

    • Scripting Events
    • Variables and Event Handler Functions table
    • Scripting Functions
    • Introduction to Custom Connectors

    Scripting Functions
    Page Contents
    • Inline Script
    • Step Script
    • Connector Script
    • Limitations
    • Further Reading

    Company

    • Company
    • About Us
    • Security and Compliance
    • Pricing
    • Blog
    • Branding
    • Embedded iPaaS
    • Release Notes

    Legal

    • Website Terms
    • Privacy Policy
    • Terms and Conditions
    • Data Protection Agreement
    • SLA
    • GDPR

    UK Office

    +44 (0) 3300 102 525

    US Office

    +1 (646) 585-2525

    Cyclr Logo

    White labelled API integration framework for creating & managing in-app SaaS integrations.

    © 2025 Cyclr. All rights reserved.