What is the “code” action app inside apps under core and how’s it work and why would i need it for my automation?

What is the “code” action app inside apps under core and how’s it work and why would i need it for my automation?

Unleashing the Power of Custom Code in Automation with the “Code” Action App


Harnessing the Potential of Custom Code in Automation

In the world of automation, the ability to incorporate custom code opens up a realm of possibilities for developers and users alike. The "Code" Action App, nestled within the Core of our applications, empowers us to leverage custom TypeScript or JavaScript code to enhance our automation processes.

Executing Custom Code with Precision

With the custom code action, we can seamlessly integrate dynamic values into our automation workflows. Imagine being able to input your first name and have access to it within your code through simple syntax. By defining variables like "inputs.firstName," we can easily manipulate and utilize these dynamic values within our code snippets.

Enhancing Automation Logic

One of the key strengths of the "Code" Action App is its flexibility in executing complex logic within our automation scripts. By exploring examples like splitting strings based on specific criteria or managing intricate data operations, we can tailor our automation processes to suit our unique requirements.

Unlocking Creativity with Customization

The beauty of custom code lies in its adaptability to cater to diverse automation needs. Whether you aim to streamline repetitive tasks, integrate external APIs, or orchestrate intricate workflows, the "Code" Action App provides a canvas for your creative automation endeavors.

Embracing Innovation through Custom Scripts

By delving into custom code within automation, we pave the way for innovation and efficiency in our workflows. The combination of intuitive automation platforms with the power of custom scripts propels us towards streamlined processes and enhanced productivity.


Video


Steps

Step 1- Click on + Icon —Select CustomerIo

Notion image
 

Step 2- Select code -Write value -Click on Test step

Notion image
 
 

VIDEO TRANSCRIPT

The custom code action allows us to run custom TypeScript or JavaScript code inside of our automation. We can pass in some dynamic values here, such as my first name, and then access that inside of our code by using inputs dot first name, since we now specified that as our variable. And if we were to return name here, this would then return Kyle.

We can adjust this obviously to run whatever code we want to add some logic here so that we can split based on a space and return just the first part of that or add more complex examples if we have any.

 
Did this answer your question?
😞
😐
🤩