Newer Version Available

This content describes an older version of this product. View Latest

Salesforce-Provided Lambda Functions

Salesforce provides several Lambda functions for use in your Service Cloud Voice contact flows. These functions are used by the sample contact flows, and you can also use them in your own contact flows.

To learn more about Lambda functions, see Amazon’s AWS Lambda Developer Guide. When fine-tuning your contact flows, you’ll commonly access contact attributes using Amazon’s JSONPath syntax. Be sure to review Amazon documentation on how to reference these attributes.

To specify which specific action you want to use for the Lambda function, create an attribute for the methodName key, as documented with each function. Additional attributes may be necessary for each method.

methodName attribute

After calling a Lambda function, be sure to store the output value using a Set contact attributes block. If you don’t store the output, subsequent calls can overwrite this value.

Set contact attributes

In the Set contact attributes block, the Attribute must match the output variable and the type must be External.

External type

The Destination key can be whatever value you want to use as a variable later in your contact flow.