SOQL query (Salesforce)¤
Python Plugin
This operator is part of a Python Plugin Package. In order to use it, you need to install it, e.g. with cmemc.
This task executes a custom Salesforce Object Query (SOQL) and returns sets of tabular data from your organization’s Salesforce account.
Use the Salesforce Object Query Language (SOQL) to search your organization’s Salesforce data for specific information. SOQL is similar to the SELECT statement in the widely used Structured Query Language (SQL) but is designed specifically for Salesforce data. – developer.salesforce.com
SOQL uses the SELECT statement combined with filtering statements to return sets of data, which can optionally be ordered. For a complete description of the syntax, see Salesforce SOQL SELECT Syntax.
This task ignores any entities it receives; the query comes only from the SOQL Query parameter. A query that matches no records fails with an error rather than returning an empty result.
Examples:
Retrieve all standard fields from all Lead resources.
Retrieve first name and last name of all Contact resources.
Please refer to the Salesforce Standard Objects list of the Salesforce Platform data model in order to get an overview of the available objects and fields.
Parameter¤
Username¤
Username of the Salesforce Account. This is typically your email address.
- ID:
username - Datatype:
string - Default Value:
None
Password¤
- ID:
password - Datatype:
string - Default Value:
None
Security Token¤
In addition to your standard account credentials, you need to provide a security token to access your data. Refer to the Salesforce Reset Token Documentation to learn how to retrieve or reset your token.
- ID:
security_token - Datatype:
string - Default Value:
None
SOQL Query¤
The query text of your SOQL query. SOQL uses the SELECT statement combined with filtering statements to return sets of data, which can optionally be ordered. For a complete description of the syntax, see Salesforce SOQL SELECT Syntax.
- ID:
soql_query - Datatype:
multiline string - Default Value:
None
Advanced Parameter¤
Dataset¤
Besides the direct output of the fetched entities, write the complete raw query response - including Salesforce’s internal metadata for each record - to a JSON dataset (mostly for debugging purposes).
- ID:
dataset - Datatype:
string - Default Value:
None