Newer Version Available
Test OAuth with Service Cloud 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{ "Details": { "Parameters": { "methodName": "queryRecord", "soql": "SELECT Id FROM Case WHERE ContactPhone = '+14155551234' AND IsClosed = false" } } } - Select the test event and click Test.
- Verify that the test succeeded.