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) 
SuperfellSuperfell
You might find the search is a better match for what you're trying to do. (it will also search multiple object types in a single call)