Newer Version Available

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

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.
  1. Log in to AWS Console > Lambda > Functions.
  2. Select the {Your Contact Center Name}-InvokeSalesforceRestApiFunction Lambda function.
  3. Click the Test dropdown menu and select Configure test event.
  4. 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}
  5. Select the test event and click Test.
  6. Verify that the test succeeded.