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.

Hey all, 

 

I am receiving an error when my amazon connect flow is calling InvokeSalesforceRestApiFunction.  

I simply do not understand where can be the issue, variables in parameter store are set correctly. certificate is available in rest connected app in salesforce. But simply I am still getting the message below. Do you have any idea how to resolve? 

 

"ExternalResults": {

"errorMessage": "client identifier invalid",

"errorCode": "invalid_client_id",

"success": "false",

"statusText": "Bad Request",

"status": "400"

},

1 answer
  1. Mar 13, 10:19 PM

    Hi , 

     

     Before using this function, you must have OAuth authentication set up.  

     

    https://developer.salesforce.com/docs/atlas.en-us.voice_developer_guide.meta/voice_developer_guide/voice_lambda_invokesalesforcerestapi.htm

     

     

     

    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.  

     

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JfuEfSAJ

0/9000