What is Variable Mapping?
When building flows in QuivaWorks, you work with two primary data sources:- Node outputs - Data produced by previous nodes in your flow
- Trigger data - Data provided when the flow is initiated
- Reference data from any previous node or the flow trigger
- Transform data using powerful JSONPath expressions
- Combine data from multiple sources
- Build dynamic strings with the pipe operator
- Filter and query complex data structures
Variable mapping is powered by JSONPath Plus v1.1.0 with custom QuivaWorks extensions for enhanced functionality.
Data Sources
- Node Data
- Trigger Data
- Combined Usage
Access output from any previous node in your flow using the node’s unique ID:Example:Nodes execute sequentially, so you can only reference nodes that have already executed.
Quick Reference
Basic Syntax
Basic Syntax
Array Operations
Array Operations
Filters & Queries
Filters & Queries
String Building
String Building
- Missing data: Returns
""(empty string) - Arrays: Returns comma-separated string (e.g.,
"a,b,c") - Objects: Returns
"[object Object]" - Primitives: Returns value as-is
How Variable Mapping Works
1
Flow Starts
Trigger data becomes available immediately via
$.trigger.*2
First Node Executes
Can access trigger data but not other node data yet
3
Subsequent Nodes Execute
Each node can access:
- Trigger data (
$.trigger.*) - All previous node outputs (
$.node_id.*)
4
Data Transforms
JSONPath expressions extract and transform data as needed
5
Flow Completes
Final node has access to all trigger and node data
Example Flow Data Structure
When to Use Variable Mapping
Webhook Processing
Access incoming webhook data via
$.trigger and enrich with additional API callsAPI Integration
Map responses from external APIs to your flow data structure
Data Transformation
Convert data formats between different systems and services
Dynamic Content
Create personalized messages, emails, and notifications
Conditional Logic
Route data based on conditions and business rules
Data Aggregation
Combine data from multiple sources into unified structures
Common Use Cases
- Webhook to Email
- Data Enrichment
- Conditional Routing
Getting Started Checklist
1
Understand Data Sources
Learn the difference between
$.trigger (flow input) and $.node_id (node outputs)2
Master Basic Syntax
Practice accessing properties using
$.NODE_ID.property pattern3
Work with Arrays
Get comfortable with array indexing
[0], slicing [0:3], and wildcards [*]4
Try the Pipe Operator
Build dynamic strings using QuivaWorks’ custom
| concatenation5
Learn Filters
Filter data with conditions like
[?(@.price>10)]6
Test in Debugger
Use the Flow Debugger to test your mappings with real data
Documentation Structure
This comprehensive guide is organized into focused sections:Basic Syntax
Core concepts, trigger data, and simple examples
JSONPath Features
Standard JSONPath capabilities and operators
Pipe Operator
QuivaWorks’ string concatenation and fallbacks
Filters & Expressions
Query, filter, and select data
Advanced Techniques
Power user features and optimization
Examples
Real-world use cases and patterns
Reference
Syntax tables and troubleshooting
Next Steps
Learn Basic Syntax
Start with the fundamentals of variable mapping
View Examples
See real-world variable mapping patterns
Quick Reference
Syntax tables and troubleshooting guide
Flow Builder
Learn how to build flows with multiple nodes
Need help? Visit our Help Center or join the Community for support.