
In InvokeSalesforceRestApiFunction Lambda, createRecord method can be used to create 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 create Case record:
{
"Details": {
"Parameters": {
"methodName": "createRecord",
"objectApiName": "Case",
"Subject": "Testing from Lambda Function",
"Description": "Sample Lambda REST API Testing",
"Status": "New",
"Priority": "Medium"
}
}
}
Test it from AWS Console.


Output:
