- Newest
- Most votes
- Most comments
try setting your parameters to
"Parameters": {
"sf_operation": "search",
"sf_object": "Account",
"q": ".+4915251121195",
"sf_fields": "Id, Name, City_CB__c"
},
The phoneLookup operation only searches against the Contact object in Salesforce as far as I can tell, so adding the City_CB__c as a field causes it to fail. The documentation on the provided lambda leaves a bit to be desired.
Looking at what is being return it seems your object might be too complex based on the limitations that the contact flow can handle based on their documentation - The output returned from the function must be a flat object of key/value pairs, with values that include only alphanumeric, dash, and underscore characters. Nested and complex objects are not supported. The size of the returned data must be less than 32 KB of UTF-8 data. can be found here - https://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html#verify-function
Relevant content
- asked 9 months ago
- asked 3 years ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago