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

Add Custom Logic to Your Journeys

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

*Illustrative representation. Actual product interface and configurations may vary.

Why It Matters

Handle Logic That Pre-Built Actions Do Not Cover

The Challenge

Date calculations, validation checks, and API response handling often require separate scripts.

With Custom Logic

Custom Logic keeps your business logic within the Journey, allowing it to run alongside other steps and keeping everything in one place.

What's Included

Go Beyond Standard Actions with Flexible Logic and Data Processing

  • A Logger Log a message action where an AI-generated JavaScript formula extracts the sender’s name from the Gmail From field.

    Formula Mode

    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 Journey. AI assistance helps generate formulas from natural-language instructions.

  • A JSON Parser by Quickwork Parse string to JSON action with sample JSON, and the parsed ID, Name and Email fields in the Data Tree Output.

    JSON Parser

    What It Does

    Make complex JSON data easier to work with.

    How It Works

    Convert JSON responses, including nested objects and arrays, into structured data pills that can be mapped to subsequent Journey steps without manually extracting each value.

  • A NodeJS Run javascript action with code that extracts an email domain, and a Context item that maps the email from a Salesforce data pill.

    NodeJS App

    What It Does

    Handle advanced processing that goes beyond standard Journey 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 Journey

    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

How Organizations Use Quickwork

  • 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. Whether you’re just getting started or scaling enterprise automation, access the knowledge, expertise, and guidance to build with confidence and achieve more with Quickwork.

  • Training and Certification

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

  • Product Documentation

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

  • 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.

Add the Logic Your Journey Needs Without Leaving the Journey