---
schema_version: "1"
id: 7aee0260a53dc79d904b452ac707e8018856215920ddc27d02d06d7e73efe144
title: Using Relationship Queries with the Partner WSDL
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-soql-sosl/guides/soql-sosl/sforce-api-calls-soql-relationships-query-partner-wsdl.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-soql-sosl/guide/sforce-api-calls-soql-relationships-query-partner-wsdl.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a57059383875b18bbb89dbc9a1d355128224e4d64c150646b5e63090a021a8d3
products:
  - SOQL and SOSL Reference
  - Platform Developer Content
---

# Using Relationship Queries with the Partner WSDL

The partner WSDL doesn’t contain the detailed type information that’s available in the enterprise WSDL which you need for a relationship SOQL query. You must first execute a `describeSObjects()` call, and from the results, gather the information you need to create your relationship query:

- The `relationshipName` value for one-to-many relationships, for example, in an Account object, the relationship name for the asset child is `Assets`.
- The reference fields available for the relevant object, for example, `whoId`, `whatId`, or `ownerId` on a Lead, Case, or custom object.

For an example of using the partner WSDL with relationship queries, see the [examples on developer.salesforce.com](https://developer.salesforce.com/page/RelationshipQuery) (requires login).
