You need to sign in to do that
Don't have an account?
Harshal Sakpal 18
SOSL using POST REST /parameterizedSearch API
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
Per my understanding if I use "in": "PHONE" it should not yield any results but it does.
Please let me know if I am missing something here.
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.
I think u forgot to add Email field in fields
For reference
per documentation The "in" field accepts one of the following values. Mentioned in the documentation here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_search_parameterized.htm
Use one of the following values:
When you visit the NBI Clearance Outlets, you should show both your Valid IDs and adequate identification…
https://www-nbiclearancecom.com/