Custom Functions and Libraries
Last updated July 24, 2024
Pipedream's code-based workflow features allow you to extend its functionality by building custom functions and libraries. This opens a world of possibilities, enabling you to add reusable logic, complex operations, and specialized functionality that perfectly matches your workflows' needs.
Defining Custom Functions
Custom functions are blocks of JavaScript code that perform specific tasks. You can define these functions within the "Code" step in your Pipedream workflow, making them available for reuse throughout your workflow.
Step 1: Create a Code Step
- Add a "Code" step: In your workflow, insert a "Code" step as you would for any other step.
Step 2: Define the Function
- JavaScript Syntax: Use standard JavaScript syntax to define your function:
Was this article helpful?