Query Custom Object using InvokeSalesforceRestApiFunction for Salesforce Service Cloud Voice

Query Custom Object using InvokeSalesforceRestApiFunction for Salesforce Service Cloud Voice

In InvokeSalesforceRestApiFunction Lambda, queryRecord method can be used to fetch or query custom object records in Salesforce.

If you haven’t setup the Connected App and Amazon Variables, please check this https://www.infallibletechie.com/2022/11/how-to-test-salesforce-soql-from-aws-invokesalesforcerestapifunction-lambda-function-in-the-aws-console.html

Sample Payload to query Custom Object record:

{
  "Details": {
    "Parameters": {
      "methodName": "queryRecord",
      "soql": "SELECT First_Name__c, Last_Name__c FROM Employee__c WHERE Phone_Number__c = '+19876543210'"
    }
  }
}

Sample Custom Object Record:

Output: 

Leave a Reply