Launchpad Training Hub API Community Support CTM Home
Activities
Activity Logs
Contacts
Flows
Automation
Chats
Forms
Routing
Release Videos
Release Notes
COVID-19
Integrations
ABTasty
Acquisio
AMP
Bing
Bizible
Cake
Facebook
Gong i.o
Google Ads
Google Analytics
Google Data Studio
Google Marketing Platform
Hubspot
Instapage
Kenshoo
Kissmetrics
Mailchimp
Marin Software
Marketo
Microsoft Dynamics
Optimizely
Oracle Maxymiser
Salesforce
SendGrid
Slack
SnapChat
Stripe
SugarCRM
Symplify
Unbounce
VWO
Wix.com
WordPress
Zapier
ZenDesk
ZOHO
General
Help Center
Numbers
Management
Dynamic Numbers
Reports
Analytics
Contact Center
Reports Delete
Usage
Report Settings
Settings
Account Management
Current Account
Contact Management
Parent/Agency
Configuration
Users
Softphone
Texts
Text Settings
Recorded Training
CTM Academy
On-Demand Videos
Upcoming Topical Webinars
Menu +

Lambda Functions

Lambdas are custom functions that can be fired using a trigger action.  Creating a lambda allows you to execute a custom code you have created using any rules available in triggers.  Lambdas run within a Node.js v8.10 environment and are given 256MB and 15 seconds to complete.

 

Creating a Lambda

  1. Navigate to Settings → Lambdas.
  2. Enter a name for this lambda function.
  3. In the Code section, use the interface to write the custom code you wish to execute.  The lambda interface gives you the ability to:
    • Select font size
    • Select your editor (Ace, Vim, or Emacs)
    • Full-screen the editor
    • Test the script by selecting a specific call
  4. If you wish to add environment variables to your lambda, click +Add Variable and specify the name and value for your variable.
  5. Click Save Changes.

 

Firing Lambdas with Triggers

To execute your new lambda, you will need to create a trigger or add a new action to an existing trigger.  Click here to learn more about trigger setup.

  1. Navigate to Calls → Triggers.  If you wish to edit an existing trigger, click edit next to the name of the trigger you want to use to run the lambda.  Otherwise, you will need to create a new trigger.
  2. Use the trigger settings to configure when you would like the trigger to run and add any necessary rules to the workflow.
  3. To run the lambda function as part of the trigger, click Add Action, then select Run Lambda Function.
  4. Use the drop-down menu to select the name of the lambda you wish to run.
  5. Click Save Changes.

X