Variable Customizations


Custom Variables act as versatile containers within viaSocket, capable of holding various types of information essential for your workflows.

           


Custom Variables allow you to tailor your workflows precisely to your requirements. Gone are the days of one-size-fits-all automation – now, you can dive deep into the inner workings of your workflows and mold them to perfection.

 

Custom Variables allow users to create and initialize variables within their workflows using JavaScript. These variables can hold various types of data, such as text strings, numbers, or even complex objects. Once defined, these variables become accessible and usable across your entire workflow.


Step by step guide on how to use custom variables in viaSocket.


1. Creating and Initializing Variables

With viaSocket's user-friendly interface, you can create and initialize variables effortlessly using JavaScript.

 

Click on the variables option from the plugin window

 

       https://lh7-us.googleusercontent.com/F_wpO1EhaDpsSx-qVuhsuIJ97tzL4e3aPn2Kgw-OyolegGZzp-ZimyLkkwCfSDfAG2EpmzNE0OmoErWrnWcDZS5pvZDtB2toXDnHIn0xHZlUyDOdPDo5edWyk7SFsH_BQD_6gc5Q0sFrL96ByRXNeA

 

You can define your variable by giving it a suitable name of your choice and initializing it with the required value. Click on the Create button to create the variable. 

 

                                


In the Response block below you can see the output of the variable as well to check if your variable has been initialized properly.

2. Types of Variables

These variables are capable of holding any data type available in JS.

 

(i) Integer value

 

                                    https://lh7-us.googleusercontent.com/jSNObmR8U7eNm7evb-jhR4_usic0Po4DPR3RDSKMSRyPWwFox_L_5l37w3bGhUh9-wn7j9-jgfEzHaor_ngU5om3ssHdsbz67xE0iMSpJSB653aeUy4QGP2eCT2RyLlF28t5eBOf10wPEMxfuVTD4A

 

(ii) String type

 

                          https://lh7-us.googleusercontent.com/fkZDnz8RM2Oohx7Hz8AOPJisXf_Kjky_TeG8Wk1OfZIvSrlq-UtsaWi7z0F_JhLSmo2oRl3VezHbeEiSpYpqiG17UrLVhkAeZ0WkBZfxFbwZ_27tud8scCddTqfijIjMRVMJKB2qNVn6jaqftIpU4Q

 

(iii) JavaScript objects

 

                https://lh7-us.googleusercontent.com/vqbAwxC0q6pltAdQ2g35rK4s2Jl3ahuO7iBnu_iXMn6eTvT290Xufk-FnhU4Ll3e7vOOD5JovO_qWb_9e6nYhcTuEkaewuShuw3aYUx-t7zzbkceYNtCHZlK3aehhzmKJoAWf8_39Z6E256S6b2HfQ

 

(iv) Boolean

 

                          https://lh7-us.googleusercontent.com/WPkIPMFJjvnkhffg55TiN7aaPB7vUQ-3N7lrHlYHBhbtjZFhlShgGHNREpAE-FbXbm7q-NapJixKyC5X3S-ybfgGsFfrwsFwXaojEFv67BPnFn7X4le9rxNeSJGTEZBPJCv1mO6aCkGF_ZEcGdpZqg

 

(v) Array

 

                        https://lh7-us.googleusercontent.com/FWVOmmfeCNwJjSyI3PmuV2KWJ675JphUCd7qIOPp66L-4rbl9QBFcE3LzO5GtFi9nC3zABmfo_pjj8z7R_IZNNK-PLOpfV144P4u94Yp9ctfl_-MAVsiOHi5Ii9E4d5g8AP_m68uMDMBPaDCk5-BzQ 

3. Dynamically Update Variables

You can also initialize the value of this custom variable with the chips that contain data obtained from the API calls above( trigger and action steps). Using chips you can dynamically change your variable's value for each workflow run. This dynamic flexibility ensures that your automation stays responsive and agile, no matter how complex your processes become.

4. Modify Data from chips

Variables in viaSocket allow you to run one-line codes. 

 

This allows you to update and modify your existing data in the chips that contain data obtained from the API calls earlier( trigger and action steps). This feature gives you the flexibility to customize your workflow with low-code rather than being dependent on limited features of no-code platforms like Zapier where you can only use data from the chip for mapping the applications to perform automations. You can not update or modify the data in chips on other platforms. 

 

📌 For exampleyou have a workflow where you update the “submission” field in Google Sheets by adding 7 days to the “assigned” date in your sheet. For this, you can simply initialize a new variable submission_Date  in workflow and add JS one line code to initialize it with “assigned” date + 7 days and then update the “submission” field in your sheet with variable submission_Date.

 

   https://lh7-us.googleusercontent.com/b00GimPnn2ootI8mvst1OFVqMQfjEchrz7tIn_arKfJP0MC37-C2Lhzh2l_MVSMLL0DyZehRVLwJUe3rBx-MipmiE5-XuDslKTLC_Pjjax4HqkqrJkNGxuQOt5K5ZTfu64ZkMougxLvWjtnE8jbvXQ

5. More customization with APIs, JS functions, and IF conditions

Variables extend the functionalities of other viaSocket features to offer you endless customization possibilities and freedom to make perfect workflows. With all the low-code features of viaSocket, you can improve your previously created rigid and standardized workflows and innovate new workflows to increase efficiencies.

 

📌 For exampleyour users submit forms in Typeform, and they submit their full name as you want to use their full name for creating invoices, and you also want to send them an email but you want to use only their first name in the emails, now in Zapier you can not edit this because the data stored in their chip can not be modified, but with viaSocket, you can add a JS code using AI to separate the first and the last name from the Full name and then store them in two different variables. Now you can easily use the new variable with the first name in your emails. 

 

Custom Variables are the key to unlocking the true potential of your automation workflows in viaSocket. By offering high customization and flexibility, they empower users to tailor their processes precisely to their unique needs. Say goodbye to cookie-cutter automation – with Custom Variables, the power is in your hands to create workflows that truly work for you.