InvokeSalesforceRestApiFunction Lambda function calls the Salesforce REST API. You can place this Lambda function within a contact flow to create, update, or query Salesforce records.
Migrate from SSM Parameter Store to AWS Secrets Manager.
Previously Service Cloud Voice used SSM Parameter Store to store certificates and configurable values. In Contact Center version 19.0 and later, these values are stored in Secrets Manager. Lambda function environment variables now include the Secrets Manager name.
Contact Center Version 19.X
Salesforce is transitioning from Connected Apps to External Client Apps (ECAs) to improve security, packaging, and DevOps, often allowing a direct migration of app management within the Salesforce org. This shift separates developer settings from administrator policies, enabling better management of OAuth and SAML. The migration process is initiated in App Manager by clicking "Migrate to External Client App" for existing connected apps.
Migrating Connected Apps to External Client Apps
The prerequisite is to create a private key and a self-signed digital certificate, which you can do using OpenSSL.
Create a Private Key and Self-Signed Digital Certificate
Create an External Client App
Once the app is created, navigate to Policies → Edit
Under App Policies
Under OAuth Policies
Under Settings tab → Click Edit
Once the External Client App is ready, you will need to replace the Rest API Connected App ID in the Contact Center metadata
Log in to the AWS Console with the root user and navigate to Lambda service
Make sure you are in the correct region and select and open the InvokeSalesforceRestApiFunction associated with your contact center.
ACCESS_SECRET_NAME AbsoluteUnifiedCC-salesforce-access-secret
LOG_LEVEL debug
SECRET_NAME AbsoluteUnifiedCC-salesforce-secret
The prefix "AbsoluteUnifiedCC" is the name of the contact center. Make sure it matches the name of your contact center.
Navigate to AWS Secrets Manager and make sure you are in the correct region
AbsoluteUnifiedCC-salesforce-rest-api-audience
AbsoluteUnifiedCC-salesforce-rest-api-auth-consumer-key
AbsoluteUnifiedCC-salesforce-rest-api-auth-private-key
AbsoluteUnifiedCC-salesforce-rest-api-subject
AbsoluteUnifiedCC-scrt-jwt-auth-private-key: Leave as is.
CALL_CENTER_API_NAME: Make sure this is your correct contact center API name.
SALESFORCE_AUTH_ENDPOINT: Leave as is.
SALESFORCE_ORG_ID: Confirm the Org ID is correct.
SALESFORCE_REST_API_ENDPOINT_BASE: Leave as is.
SCRT_ENDPOINT_BASE: Leave as is.
TRANSCRIBE_REGION: Make sure the region is correct.
Navigate to InvokeSalesforceRestApiFunction associated with your contact center to test the REST API
Test OAuth with Service Cloud Voice Lambda Function
Once you have opened the Lambda function, navigate to TEST and scroll down to Event JSON or the code test area.
Remove everything from the Event JSON and use the code snippet below for testing.
{
"Details": {
"Parameters": {
"methodName": "queryRecord",
"soql": "SELECT Id, Name FROM Account LIMIT 1"
}
}
}
Scroll up and click the TEST button.
If the setup is correct, this will display the result in the Details section.
InvokeSalesforceRestApiFunction Lambda Function
Migrating Connected Apps to External Client Apps
Create a Private Key and Self-Signed Digital Certificate
How to Convert and Upload the REST API Private Key in Plain Text for Salesforce Voice
005321854

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.