Loading

Salesforce Voice: Troubleshooting Errors in the InvokeSalesforceRestApiFunction Lambda function

Data pubblicazione: Apr 2, 2026
Descrizione

When using Salesforce Voice (formerly Service Cloud Voice), this error is most commonly seen when first setting up the InvokeSalseforceRestApiFunction in AWS for authentication. It can be seen as a result of a number of different configuration issues.

Updates to Contact Centers will overwrite customizations to Lambda functions. The best practice is to back up all configurations to the Lambda functions before updating.

Risoluzione

To troubleshoot Voice when your AWS Lambda function InvokeSalesforceRestApiFunction returns the error "Cannot read property 'status' of undefined", perform the following:

 

  1. Ensure the Contact Center is up to date in Salesforce.
    1. Admins will see a banner in their Setup prompting them to update an out-of-date contact center.
    2. Admin users can update their Contact Center following the Update Your Contact Center information.
    3. Reconfigure the Lambda function once updated.
  2. Check to make sure the Connected App is configured correctly
    1. From Setup->App Manager, click the dropdown next to your connected app, and select Edit
    2. Check that Enable OAuth Settings is checked. Then make sure Use Digital Signatures is checked, and your server.crt file is uploaded to the app.
  3. Make sure the Environment Variables are correct in AWS
    1. SUBJECT is a Salesforce Username that is added to the Connected App (see Manage OAuth Access Policies for a Connected App for more information). This user needs to have the API Enabled permission, as well as permission to view, edit or create any records as needed.
    2. AUDIENCE is https://login.salesforce.com if using a Production org, https://test.salesforce.com if a Sandbox (can also try My Domain values).
  4. Check that the Parameter Store values are correct.
    1. Key ending in 'salesforce-rest-api-auth-consumer-key' matches the value of the Consumer Key in the Connected App
    2. Key ending in 'salesforce-rest-api-auth-private-key' matches the value of the private key generated locally, with the BEGIN and END parts included.
  5. Ensure that the Environment Variable values match to Names in the Parameter Store.
  6. Generate a new Private Key, and reconfigure the authentication using it.

If none of these steps resolve the issue, please contact Salesforce Support.

Numero articolo Knowledge

000389985

 
Caricamento
Salesforce Help | Article