Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Test OAuth with Salesforce Voice Lambda Function
To test that you have OAuth set up for the InvokeSalesforceRestApiFunction Lambda function, create a test event.
- Log in to AWS Console > Lambda > Functions.
- Select the {Your Contact Center Name}-InvokeSalesforceRestApiFunction Lambda function.
- Click the Test dropdown menu and select Configure test event.
-
Copy the JSON information to use as your test event. Put the entire query on one line.
Contact Salesforce Support if you don’t already have some test data to use.
For example:
1{ 2 "Details": { 3 "Parameters": { 4 "methodName": "queryRecord", 5 "soql": "SELECT Id FROM Case WHERE ContactPhone = '+14155551234' AND IsClosed = false" 6 } 7 } 8} - Select the test event and click Test.
- Verify that the test succeeded.