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
odieodie 

query multiple objects

Hi,

 

I am using the SF Webservices API to query SF objects. I want to query Leads and Contacts by phone number and I want to return matched records. Currently, I am using 2 seperate web service queries to achieve this, but is there anyway I can achieve this in only one query?

 

Thanks,

Odie 

Best Answer chosen by Admin (Salesforce Developers) 
aalbertaalbert

Yes, you can use the Search and SOSL syntax to do that in a single call.

Link