View as Markdown
Salesforce icon

Salesforce ACTION

Get Related Records

Get child records related to a parent Salesforce record via a relationship. Use to traverse relationships without writing SOQL joins. Common relationships: Account → Contacts, Opportunities, Cases, Tasks; Contact → Cases, Opportunities, Tasks; Opportunity → OpportunityLineItems, Tasks. Use Describe Object to discover available relationship names if unsure (look for relationshipName on reference fields). See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Salesforce account once, then configure and run Get Related Records from your backend or agent.

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Related Records inputs
Property Type Description
objectType Parent Object Type string
The SObject API name of the parent record (e.g. Account, Contact, Opportunity).
Required
recordId Record ID string
The ID of the parent record.
Required
relationshipName Relationship Name string
The API name of the relationship to traverse (e.g. Contacts, Opportunities, Cases, Tasks). This is the plural relationship name, not the field name. Use Describe Object on the parent type to discover available relationships.
Required
fields Fields string[]
Fields to return on the related records (e.g. ["Id", "Name", "Email"]). If omitted, returns default fields.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
salesforce_rest_api-get-related-records
Version
0.0.4
App
Salesforce
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes