Describe Account
describe_accountFull Description
Retrieve the Salesforce Account object metadata using the sObject Describe resource. Returns: DescribeSObjectResult: The parsed Salesforce API response describing the Account object.
Interact with Salesforce CRM data.
describe_accountRetrieve the Salesforce Account object metadata using the sObject Describe resource. Returns: DescribeSObjectResult: The parsed Salesforce API response describing the Account object.
describe_contactRetrieve the Salesforce Contact object metadata using the sObject Describe resource. See: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_describe.htm Returns: DescribeSObjectResult: The parsed Salesforce API response describing the Contact object.
describe_leadRetrieve the Salesforce Lead object metadata using the sObject Describe resource. Returns: DescribeSObjectResult: The parsed Salesforce API response describing the Lead object.
describe_opportunityRetrieve the Salesforce Opportunity object metadata using the sObject Describe resource. Returns: DescribeSObjectResult: The parsed Salesforce API response describing the Opportunity object.
describe_sobjectRetrieve Salesforce metadata for the provided sObject using the Describe API. Args: sobject: The Salesforce sObject name (e.g., 'Contact', 'Account', 'CustomObject__c'). Returns: DescribeSObjectResponse: The parsed Salesforce API describe response.
sobjectstringget_accountRetrieve a Salesforce account by ID. Args: account_id: The Salesforce Account ID (e.g., '001...'). Returns: Account: A minimal Account Pydantic model with core fields and the unmapped fields in 'other_fields'.
account_idstringget_contactRetrieve a Salesforce contact by ID. Args: contact_id: The Salesforce Contact ID (e.g., '003...'). Returns: Contact: A minimal Contact Pydantic model with core fields and the unmapped fields in 'other_fields'.
contact_idstringget_leadRetrieve a Salesforce lead by ID. Args: lead_id: The Salesforce Lead ID (e.g., '00Q...'). Returns: Lead: A minimal Lead Pydantic model with core fields and the unmapped fields in 'other_fields'.
lead_idstringget_opportunityRetrieve a Salesforce opportunity by ID. Args: opportunity_id: The Salesforce Opportunity ID (e.g., '006...'). Returns: Opportunity: A minimal Opportunity Pydantic model with core fields and the unmapped fields in 'other_fields'.
opportunity_idstringget_profileReturn the authenticated user's Salesforce profile.
get_sobjectRetrieve a Salesforce sObject record by ID. Args: sobject: The Salesforce sObject name (e.g., 'Contact', 'Account', 'CustomObject__c'). record_id: The Salesforce record ID. Returns: dict: The full API response for the record.
record_idstringsobjectstringlist_sobjectsRetrieve the Salesforce sObjects available to the authenticated user. Returns: ListSObjectsResponse: The list of accessible objects and their metadata.
query_soqlRun a SOQL (Salesforce Object Query Language) query against Salesforce and return the raw JSON response.
This method allows you to execute arbitrary SOQL queries using the Salesforce REST API. It returns the raw API response, which typically includes the following fields:
Args: soql: The SOQL query string (e.g., 'SELECT Name FROM Account').
Returns: dict: The Salesforce API response, including 'records', 'done', and possibly 'nextRecordsUrl'.
Usage Example: >>> soql = "SELECT Id, Name FROM Account WHERE Industry = 'Technology'" >>> result = await connector.query_soql(soql) >>> print(result['records'])
Pagination: If the result set is large, Salesforce may return a 'nextRecordsUrl'. You can use this URL with the HTTP client to fetch additional records. See: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm
SOQL Reference:
See Also:
soqlstringsearch_soslRun a SOSL (Salesforce Object Search Language) search against Salesforce and return the raw JSON response.
This method allows you to execute arbitrary SOSL searches using the Salesforce REST API. It returns the raw API response, which typically includes the following fields:
Args: sosl: The SOSL search string (e.g., 'FIND {Acme} RETURNING Account(Id, Name), Contact(Id, Name)').
Returns: dict: The Salesforce API response, including 'searchRecords' and other metadata.
Usage Example: >>> sosl = "FIND {Acme} RETURNING Account(Id, Name), Contact(Id, Name)" >>> result = await connector.search_sosl(sosl) >>> print(result['searchRecords'])
Reference:
soslstring