function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David KirkDavid Kirk 

API call that would allow us to lookup a contact by email address in Salesforce.com enterprise edition and then extract the data for said contact?

Can you please send us the API documentation and if possible point me to the API call that would allow us to lookup a contact by email address in Salesforce.com enterprise edition and then extract the data for said contact?
pconpcon
Sounds like you just want to use the query method.  You can do this either via the REST API [1], the Enterprise / Partner SOAP API [2], a custom SOAP API [3], a custom REST API [4] or depending on where you're using it via SOQL in Apex.

What do you plan on using to access the data from?  If you're doing it from a node app, then you could use something like jsForce [5].

[1] http://www.salesforce.com/us/developer/docs/dbcom_intro/Content/quickstart_use_rest_apis.htm
[2] https://developer.salesforce.com/page/Sample_SOAP_Messages
[3] http://blog.deadlypenguin.com/blog/2015/03/09/web-services-development-salesforce/
[4] https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST
[5] http://jsforce.github.io
Pavel OrlovPavel Orlov
a simple example of how to do search by email for instance would be extremely useful since the documentation appears to be very ad-hoc and not precise.
thanks.
Pavel OrlovPavel Orlov
I guess might be usefule for someone who come across this.. Something like this seems to be working

/// TO FIND
GET https://yourinstance.salesforce.com/services/data/v37.0/search/?q=FIND+%7Byoursearchstring%7D HTTP/1.1
Host: ap5.salesforce.com
Content-Type: application/json
Authorization: Bearer [token]

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_search.htm

/// TO GET DATA
GET https://ap5.salesforce.com/services/data/v37.0/sobjects/Contact/0037F000001ljKFQAY HTTP/1.1
Host: ap5.salesforce.com
Content-Type: application/json
Authorization: Bearer [token]


https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm