How to use JavaScript code in Albato

How to use JavaScript code in Albato
JavaScript
·
11/21/2022
·
4 min. read

Albato’s new feature - JavaScript code - allows you to run your own custom code. Just enter your code into the automation settings following this step-by-step instruction.

How to add

Open the Automation builder. Pick the automation scenario to add the JavaScript action or create a new one.

Click the Add an action button.

Choose the JavaScript app in the App field.

Click the Add an action button.

unnamed.png

How to set up

First, set up the Input data variable:

  • create a variable
  • set the name
  • specify the value

unnamed (1).png

To add more variables, click on the Add a field button and follow the previous steps.

unnamed (2).png

You can also remove unnecessary variables (fields).

unnamed (4).png

Next, enter your own JS code using the variables that you have created.

unnamed (3).png

Then we set up the Output Data variable - the result of the script.

Set the name for the variable and specify the type.

unnamed (5).png

The Output data setting is a required step. Even if you haven't created new variables in the code, you need to set up this section so that the system understands which fields and values will be used in the next steps.

Save the settings of this step, then you will find these fields in the subsequent steps of the automation scenario.

unnamed (6).png

Please note that Albato is not responsible for the performance of your code. Make sure you really know how to work with JavaScript before using this step.

If the code failed to run for some reason, then the automation log shows an error.

unnamed (7).png

unnamed (8).png


JavaScript
Tools

Related articles

Show more
Want to learn automation tricks?
2 min. read

Want to learn automation tricks?

Explore what’s new in Albato: features, apps, and improvements

How to Connect Snowflake to Albato Using OAuth2
3 min. read

How to Connect Snowflake to Albato Using OAuth2

By connecting Snowflake to Albato you can streamline data flows across multiple business apps without manual effort.

How to Connect Apollo to Albato
3 min. read

How to Connect Apollo to Albato

Create integrations with Apollo in Albato to automate lead generation, streamline contact management.

AI Agent Useful Case Studies: Enhancing Business Operations
8 min. read

AI Agent Useful Case Studies: Enhancing Business Operations

In this article, you'll learn what AI agents are, how they work, and how they can add value through useful case studies in different niches from content and marketing to healthcare and retail.

How to Scale a Business with No Code
8 min. read

How to Scale a Business with No Code

In this article, you’ll learn how to scale a business with no code and choose the right tools for the job.

What Are White-Label Integrations for SaaS
7 min. read

What Are White-Label Integrations for SaaS

In this article, we explain what white-label integrations for SaaS are, explore their benefits and drawbacks.

Work Smarter, Not Harder
2 min. read

Work Smarter, Not Harder

Explore what’s new in Albato: features, apps, and improvements

In-house vs. Unified API vs. Embedded iPaaS: Key Differences & Best Use Cases
8 min. read

In-house vs. Unified API vs. Embedded iPaaS: Key Differences & Best Use Cases

In this article, you will learn the key differences between in-house integration development, Unified APIs and Embedded iPaaS to choose the best strategy for your SaaS product.

What the Ansoff Growth Matrix Is and How to Use It
8 min. read

What the Ansoff Growth Matrix Is and How to Use It

In this article, you will learn the definition of the Ansoff Growth Matrix, how it works, and how to use it for strategic planning in your business.

White-Label Albato Embedded vs. Zapier Embed: Solution Comparison
6 min. read

White-Label Albato Embedded vs. Zapier Embed: Solution Comparison

In this article, you will learn about the features and pricing fo Albato Embedded vs Zapier to help you find the best white-label integration solution for your needs.

Big News for AI Enthusiasts
2 min. read

Big News for AI Enthusiasts

Explore what’s new in Albato: features, apps, and improvements

Top 15 Tools for Outreach 2025
20 min. read

Top 15 Tools for Outreach 2025

In this article, you will find 15 top tools for outreach that help with contact enrichment, lead scoring, and more.