Hi everyone,
I need to use the InvokeSalesforceRestApiFunction Lambda to query the record of a custom object in Salesforce. However I'm having issues in understanding how to correctly reference the recordId variable in the AWS contact flow. Has anyone already used this Lambda function with a custom Salesforce object?
Thank you so much,
Erica
Hi Magulan,
Thank you so much for your response and for the reference.
I have already set up the OAuth configuration both in Salesforce and AWS.
However, when I invoke the Lambda in the AWS contact flow, the query does not return any results, so I am having difficulties in understanding why and how to correctly reference and check the contact attributes.
By checking the CloudWatch logs, the Lambda is working correctly and no error is displayed.
Thank you,
Erica
Erica,
Check Payload in the following example
Hi Magulan,
The query runs smoothly in Salesforce and returns the expected results, as the user has the permission to view all the custom object records.
Thank you,
Erica
Erica,
Run the SOQL directly in Salesforce to confirm whether it is returning results or not. May be the integration user doesn't have access to the records.