<link rel="stylesheet" href="https://use.typekit.net/qis5rwu.css">

Add Custom Logic to Your Workflows

Transform values, parse JSON, and run full scripts as a step within the same Journey.

Why It Matters

Handle Logic That Pre-Built Actions Do Not Cover

The Challenge

Date Calculations, Validation Checks, API Response Handling Often Require Separate Scripts.

With Custom Logic

Custom Logic Keeps That Logic Inside the Journey, So It Runs with the Rest of the Workflow and Stays in One Place.

What's Included

Go Beyond Standard Actions with Flexible Logic and Data Processing

  • Formula mode on an input field, with a JavaScript formula transforming a mapped value and an AI prompt that generates the formula.

    Formula Engine

    What It Does

    Customize data and calculations to match your business requirements.

    How It Works

    Apply JavaScript formulas to transform values, standardize information, and calculate results within your workflow. AI assistance helps generate formulas from natural-language instructions.

  • JSON Parser turning a nested JSON response into structured fields that can be mapped in later steps.

    JSON Parser

    What It Does

    Make complex API data easier to work with.

    How It Works

    Turn JSON responses, including nested information, into structured fields that can be mapped across applications without manually extracting each value.

  • The NodeJS app step with a JavaScript script, its context inputs and the output returned to the Journey.

    NodeJS App

    What It Does

    Handle advanced processing that goes beyond standard workflow actions.

    How It Works

    Run custom JavaScript within a Journey to support complex validations, data processing, and business-specific requirements.

Key Benefits

Add Custom Logic without Taking It Outside the Journey

  • Keep Everything in One Workflow

    Run transformations, JSON parsing, and custom scripts within the same Journey, without relying on separate services.

  • Use the Right Level of Logic

    Use Formula mode for lightweight transformations, JSON Parser for structured JSON data, and NodeJS app for more complex JavaScript.

  • Work with Standard JavaScript

    Use familiar JavaScript for custom logic instead of learning a proprietary scripting language.

Use Cases

Real-World Use Cases

  • E-commerce

    Process Order Data from an API

    An online store receives order details through an API in JSON format. JSON Parser converts the response into usable fields, while Formula mode calculates order totals, formats dates, and prepares the data for invoice creation.

  • Data Integration

    Prepare Records Before Loading Them into Another System

    A Journey receives records from Salesforce or another application. Formula mode standardizes values such as dates, emails, phone numbers, and empty fields before the records are inserted or updated in a database like PostgreSQL.

  • Business Validation

    Apply Custom Rules Before a Record Moves Forward

    A Journey passes selected values into a NodeJS script using Context key-value pairs. The script applies business rules, validations, or lookup logic and returns the result for the next part of the Journey.

FAQs

Common Questions, Answered

Quick answers to common questions about adding custom logic to Journeys.

  1. Not necessarily. JSON Parser can structure data without writing code. Formula mode supports simple JavaScript transformations, while NodeJS app is better suited to developers working with more complex scripts.

  2. Use Formula mode for simple calculations, formatting, and changes to individual values. Use NodeJS app for more complex logic, multiple operations, or larger amounts of data.

  3. Yes. Formula mode has a shorter execution limit of approximately one second. NodeJS app supports scripts running for up to 90 seconds, with payloads up to 10 MB.

  4. The run appears as a failed transaction in the History tab, with an error description. Wrap the step in Try-catch to log the error, send an alert, or run a fallback instead of stopping the Journey.

  5. JSON Parser can process valid JSON objects and arrays, including nested data, and make their fields available for use in later Journey steps.

Quickwork Ecosystem

Use the Quickwork Ecosystem

Explore Quickwork’s learning resources, documentation, partner network, and community to find the level of support you need.

  • Training and Certification

    Learn Quickwork through guided training and certification programs covering workflow building, integrations, APIs, and AI-driven automations.

    Explore training
  • Product Documentation

    Find step-by-step guides to build Journeys, connect applications, manage APIs, and troubleshoot workflows.

    Read the docs
  • Partners

    Find a Quickwork partner with proven expertise to help design, build, and scale your automation strategy.

  • Community

    Ask technical questions, share feedback, and discuss Quickwork features with other users and experts.

    Visit community

Add the Logic Your Workflow Needs Without Leaving the Journey.