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
mahesh meghwalmahesh meghwal 

Query salesforce from external system.

Hi ,

i have a requirments where i want to access salesforce from external system . the externat system will pass a number to salesforce and salesforce will search and return data to external system based on that number.

what i need to do from salesforce side. 
logontokartiklogontokartik
Nothing in specific from Salesforce side, your external system must use API's to query Salesforce. you have various options here, like using REST API, SOAP API etc, 

If you use the REST route, please look at this documentation 

https://www.salesforce.com/us/developer/docs/api_rest/


If you go in SOAP Route, you need to download either Enterprise or Partner WSDL and consume the wsdl in your external app to access the Query Methods. 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_intro.htm

Sonam_SFDCSonam_SFDC
You need to create the Salesforce WSDL and consume it at the 3rd party end such that you can login to salesforce and access the data, search and return results:
WSDL creation:
https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps_generate_wsdl.htm

OR you could use the APIs - SOAP(http://www.salesforce.com/us/developer/docs/api/)/REST(https://www.salesforce.com/us/developer/docs/api_rest/)
Shashank SrivatsavayaShashank Srivatsavaya
You can use the SOAP API or the REST API provided by Salesforce to achieve this. Here's some help:

https://developer.salesforce.com/page/SOAP_API
https://developer.salesforce.com/page/REST_API
Pramod_SFDCPramod_SFDC
Hi,

You can use a Webservice Class inside the Salesforce, which will handle the request sent by the external system and process the request and send the required information to the External system. For doing this, you must provide the WSDL file, which contain the Metadat of youn Organisation to the external System, so that they can communicate with Slaesforce Server accordingly.

You can have look into the belo document, which will guide you to Integrate Salesforce with the External System

>>https://developer.salesforce.com/page/Integration

I hope, this helped you.


Regards
Pramod
mahesh meghwalmahesh meghwal
@logontokartik 

If i use Apex REST GET and POST method .. what do i need to provide  to external system to connect to salesforce.