1

I got the "/services/data/v46.0/parameterizedSearch" POST API working for a complex SOSL search I want to perform.

I am referring to the Salesforce documentation here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_search_parameterized.htm

My requirement is, I wish to find an email address by only searching the email fields and have the request json payload tailored to do so

POST /services/data/v46.0/parameterizedSearch
{
  "q":"mytestemail+test@example.com",
  "fields":["Id", "external_id__c"],
  "in": "EMAIL",
  "sobjects": [{"name":"Account"}]
}

Per my understanding if I use "in": "PHONE" it should not yield any results but it does.

POST /services/data/v46.0/parameterizedSearch
{
  "q":"mytestemail+test@example.com",
  "fields":["Id", "external_id__c"],
  "in": "PHONE",
  "sobjects": [{"name":"Account"}]
}

Please let me know if I am missing something here.

  • All, I have created a case with Salesforce support and it appears that this function is not working as designed / documented. I have not received an official word yet but making my deduction per number of days it is still with the support pending investigation. – Json Bourne Shell Dec 13 '19 at 17:51
  • Salesforce support confirmed that the functionality does not work as documented. Here's the knowledge article: success.salesforce.com/issues_view?id=a1p3A000001GSK4 – Json Bourne Shell Dec 27 '19 at 17:49
0

Salesforce support confirmed that the functionality does not work as documented. Here's the knowledge article: success.salesforce.com/issues_view?id=a1p3A000001GSK4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.