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
sfdcconsultant2010sfdcconsultant2010 

Can we use any Id other then Salesforce Id to query object for Integration while using Partner WSDL.

Hi,

Can we use any Id other then Salesforce Id to query object for Integration while using Partner WSDL. e.g. Can we use an external field (e.g. Customer ID) to query Account inside Salesforce using SOAP API?   
pconpcon
You can use the standard query method and just include your external field in the where portion of the clause.  You *may* be able to do a GET request against the endpoint like you would for insert/upsert [1]
 
curl https://xxx.salesforce.com/services/data/v33.0/sobjects/Account/CustomerId__c/123ABC \
    -H "Authorization: Bearer XXXXX" \
    -H "Content-Type: application/json" \
    -X GET

[1] https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm