Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.

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

4 Antworten
  1. 17. Jan. 2023, 09:23

    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

  2. 17. Jan. 2023, 15:01

    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

  3. 17. Jan. 2023, 14:14

    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.

0/9000