How to query records from serverUrl salesforce (SFDC)

165 Views Asked by At

I have soap url of salesforce (SFDC). I give call to the url (passing username, pwd and token). In response I get serverUrl, sessionId and userId. How do I now query records from serverUrl What parameters do I need to Pass to it while giving a call to serverUrl? Eg:- suppose I want to query Id,Name from Account object

1

There are 1 best solutions below

0
On

Salesforce offers detailed documentation of the both the REST API and the SOAP API.

See the query() call for the SOAP API and the Query endpoint for the REST API.

Authentication is also well-documented for SOAP and REST.