Skip to content

Salesforce

Salesforce

Salesforce is a leading CRM platform integrating sales, service, marketing, and analytics to build customer relationships and drive business growth. With the Salesforce integration in SquadOS, your agents can create and update CRM records, query data via SOQL, log activities, send emails, and automate sales workflows — all without leaving SquadOS.

This tool uses OAuth 2.0 (OAUTH2) to connect.

You will need the following fields:

FieldRequiredDescription
subdomainYesYour Salesforce organization subdomain (e.g., your-company.my).
instance_urlYesYour Salesforce instance endpoint (e.g., /services/data/v61.0). If you see URL_NOT_RESET, replace the login subdomain with your organization’s subdomain.
  1. Go to login.salesforce.com and sign in.
  2. Click your avatar in the top-right corner and select Settings.
  3. In the sidebar, go to My Personal Information → Personal Information to confirm your instance subdomain. The URL shown in the browser (https://SUBDOMAIN.my.salesforce.com) contains the value you need.
  4. To set up custom OAuth credentials in Composio, follow the guide at composio.dev/auth/salesforce.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Salesforce.
  3. Click the card to open the details modal and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you authorize OAuth access to your Salesforce account.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available to your agents. (Connection-flow details in Organization Tools.)

How do I set up custom OAuth credentials for Salesforce?

Section titled “How do I set up custom OAuth credentials for Salesforce?”

Follow the step-by-step guide at composio.dev/auth/salesforce to create and configure your own Salesforce OAuth credentials with Composio.

Why can’t I find items I created in Salesforce?

Section titled “Why can’t I find items I created in Salesforce?”

Created records may not appear in a given Salesforce view. Use search to confirm they exist.

How do I query relationships like Pricebooks and Opportunities?

Section titled “How do I query relationships like Pricebooks and Opportunities?”

Use SOQL subqueries to traverse relationships. Example (Products → Pricebooks → Opportunities):

SELECT Id, Name,
(SELECT Id, Quantity, UnitPrice, TotalPrice, PricebookEntry.Product2.Name FROM OpportunityLineItems)
FROM Opportunity

What fields are required when connecting Salesforce?

Section titled “What fields are required when connecting Salesforce?”

You need your subdomain (e.g., your-company.my) and the instance endpoint /services/data/v61.0. If you see URL_NOT_RESET, replace the login subdomain with your organization’s subdomain.

What happens to deprecated Salesforce tools?

Section titled “What happens to deprecated Salesforce tools?”

Deprecated tools continue to work until removed. Check tool descriptions for DEPRECATED: markers.

SALESFORCE_CREATE_ACCOUNT

Creates a new account in Salesforce with the specified information. Returns the created Account’s ID at data.response_data.id.

NameTypeRequiredDescription
namestringYesAccount name (required field in Salesforce).
phonestringNoMain phone number.
websitestringNoCompany website URL.
industrystringNoIndustry the account belongs to.
typestringNoType of account.
descriptionstringNoText description of the account.
billing_citystringNoBilling address city.
billing_statestringNoBilling address state/province.
billing_countrystringNoBilling address country.
billing_streetstringNoBilling address street.
billing_postal_codestringNoBilling address postal/zip code.
annual_revenuenumberNoEstimated annual revenue.
number_of_employeesintegerNoNumber of employees.
parent_idstringNoID of the parent account if this is a subsidiary.
custom_fieldsobjectNoCustom fields to set on the account. Use Salesforce API field names (e.g., Level__c).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_CREATE_CONTACT

Creates a new contact in Salesforce with the specified information. Writes to live CRM data — obtain explicit user confirmation before executing in automated flows.

NameTypeRequiredDescription
last_namestringYesContact’s last name (required field in Salesforce).
first_namestringNoContact’s first name.
emailstringNoContact’s email address.
phonestringNoContact’s primary phone number.
mobile_phonestringNoContact’s mobile phone number.
titlestringNoContact’s job title.
departmentstringNoContact’s department.
account_idstringNoID of the Account this contact is associated with.
lead_sourcestringNoSource from which this contact originated.
mailing_streetstringNoContact’s mailing street address.
mailing_citystringNoContact’s mailing city.
mailing_statestringNoContact’s mailing state/province.
mailing_countrystringNoContact’s mailing country.
mailing_postal_codestringNoContact’s mailing postal/zip code.
custom_fieldsobjectNoDictionary of custom field API names and their values (e.g., Level__c).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_CREATE_LEAD

Creates a new lead in Salesforce. LastName and Company are required. Org-level validation rules (e.g., email format, custom required fields) may reject requests beyond these; inspect the error response body for the failing field.

NameTypeRequiredDescription
LastNamestringYesLead’s last name. Required.
CompanystringYesLead’s company name. Required.
FirstNamestringNoLead’s first name.
EmailstringNoLead’s email address.
PhonestringNoLead’s phone number.
TitlestringNoLead’s job title. Maximum length is 128 characters.
StatusstringNoLead status.
LeadSourcestringNoSource of the lead.
IndustrystringNoLead’s industry.
StreetstringNoLead’s street address.
CitystringNoLead’s city.
StatestringNoLead’s state/province.
CountrystringNoLead’s country.
PostalCodestringNoLead’s postal/zip code.
AnnualRevenuenumberNoLead’s company annual revenue.
NumberOfEmployeesintegerNoNumber of employees at lead’s company.
CustomFieldsobjectNoDictionary of custom field API names and their values (e.g., Level__c).
allow_duplicatesbooleanNoWhen true, allows creating duplicate leads even if Salesforce duplicate detection rules are triggered.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_CREATE_OPPORTUNITY

Creates a new opportunity in Salesforce with the specified information.

NameTypeRequiredDescription
namestringYesOpportunity name (required field in Salesforce).
close_datestringYesExpected close date in YYYY-MM-DD format (required field in Salesforce).
stage_namestringYesCurrent stage of the opportunity (required field in Salesforce).
account_idstringNoID of the Account this opportunity is associated with. Omitting leaves the opportunity orphaned and excluded from account-based reports.
amountnumberNoEstimated total sale amount.
descriptionstringNoText description of the opportunity.
lead_sourcestringNoSource of the opportunity.
probabilitynumberNoPercentage probability of closing (0–100).
next_stepstringNoDescription of next step in sales process.
pricebook2_idstringNoID of the price book for this opportunity.
custom_fieldsobjectNoDictionary of custom field API names and their values.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_CREATE_TASK

Creates a new task in Salesforce to track activities, to-dos, and follow-ups related to contacts, leads, or other records.

NameTypeRequiredDescription
subjectstringYesSubject/title of the task.
who_idstringNoID of the Contact or Lead associated with this task. Only accepts Contact IDs (prefix 003) or Lead IDs (prefix 00Q).
what_idstringNoID of the related record (Account, Opportunity, Case, etc.).
owner_idstringNoID of the user who owns the task. Defaults to current user.
statusstringNoStatus of the task. Must be a valid picklist value.
prioritystringNoPriority level of the task.
descriptionstringNoDetailed description or notes for the task.
activity_datestringNoDue date for the task in YYYY-MM-DD format.
is_reminder_setbooleanNoWhether to set a reminder for this task.
reminder_date_timestringNoDate and time for the reminder in ISO format (YYYY-MM-DDTHH:MM:SS).
custom_fieldsobjectNoDictionary of custom field API names and their values.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_ACCOUNT

Retrieves a specific account by ID from Salesforce, returning all available fields.

NameTypeRequiredDescription
account_idstringYesThe Salesforce ID of the account to retrieve.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_CONTACT

Retrieves a specific contact by ID from Salesforce, returning all available fields.

NameTypeRequiredDescription
contact_idstringYesThe Salesforce ID of the contact to retrieve. Must be a valid 18-character Salesforce ID; names or emails are not valid substitutes.
fieldsstringNoComma-delimited string of Contact field API names to retrieve. If omitted, all fields are returned.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_LEAD

Retrieves a specific lead by ID from Salesforce, returning all available fields.

NameTypeRequiredDescription
lead_idstringYesThe Salesforce ID of the lead to retrieve. Must be a Salesforce record ID (18-char format); names, emails, or external codes are not accepted.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_OPPORTUNITY

Retrieves a specific opportunity by ID from Salesforce, returning all available fields.

NameTypeRequiredDescription
opportunity_idstringYesThe Salesforce ID of the opportunity to retrieve. Must be a valid 15 or 18 character alphanumeric Salesforce ID.
fieldsstringNoComma-delimited string of Opportunity field API names to retrieve. If omitted, all fields are returned.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_USER_INFO

Retrieves information about the current user or a specific user in Salesforce.

NameTypeRequiredDescription
user_idstringNoThe Salesforce User ID to retrieve information for. If not provided, returns current user info.
include_permissionsbooleanNoWhether to include user permissions in the response (requires additional API call).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_LIST_ACCOUNTS

Lists accounts from Salesforce using SOQL query, allowing flexible filtering, sorting, and field selection. Results paginate via nextRecordsUrl with up to ~2000 rows per page.

NameTypeRequiredDescription
querystringNoSOQL query to fetch accounts. Use standard SOQL syntax to filter, sort, and limit results. Always include WHERE and LIMIT clauses to avoid oversized responses.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_LIST_CONTACTS

Lists contacts from Salesforce using SOQL query, allowing flexible filtering, sorting, and field selection. Results are returned under response_data.records; check response_data.done and response_data.totalSize for pagination.

NameTypeRequiredDescription
querystringNoSOQL query to fetch contacts. Use standard SOQL syntax. String literals must be single-quoted. Use correct field API names and relationship traversal (e.g., Account.Industry).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_LIST_LEADS

Lists leads from Salesforce using SOQL query, allowing flexible filtering, sorting, and field selection. Results are paginated; follow nextRecordsUrl in the response to retrieve subsequent pages.

NameTypeRequiredDescription
querystringNoSOQL query to fetch leads. Use standard SOQL syntax. Field API names must be exact (e.g., LeadSource, LastModifiedDate); invalid names cause MALFORMED_QUERY errors.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_LIST_OPPORTUNITIES

Lists opportunities from Salesforce using SOQL query, allowing flexible filtering, sorting, and field selection. Results are paginated up to ~2000 rows per batch.

NameTypeRequiredDescription
querystringNoSOQL query to fetch opportunities. Omitting a WHERE clause returns all opportunities including historical ones. Results have no default sort order; include ORDER BY CloseDate DESC to retrieve recent opportunities first.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_LOG_CALL

Logs a completed phone call as a task in Salesforce with call-specific details like duration, type, and disposition.

NameTypeRequiredDescription
who_idstringNoID of the Contact or Lead associated with the call.
what_idstringNoID of the related record (Account, Opportunity, Case, etc.) associated with the call.
subjectstringNoSubject line for the call log. Defaults to Call.
commentsstringNoDetailed notes or description of what was discussed during the call.
call_datestringNoDate of the call in YYYY-MM-DD format. Defaults to today.
call_typestringNoStandard Salesforce Task CallType values: Inbound, Outbound, or Internal.
call_duration_secondsintegerNoDuration of the call in seconds.
call_dispositionstringNoOutcome or result of the call. Restricted picklist — only org-configured values are accepted.
custom_fieldsobjectNoDictionary of custom field API names and their values.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_RUN_SOQL_QUERY

Executes a SOQL query against Salesforce data. Returns records matching the query with pagination support.

NameTypeRequiredDescription
querystringYesSOQL query to execute. Must start with SELECT. Field names must match object schema exactly. No AS keyword for aliases (e.g., SUM(Amount) TotalSales, not SUM(Amount) AS TotalSales). FIELDS(ALL) and FIELDS(CUSTOM) require LIMIT less than or equal to 200.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_SEARCH_ACCOUNTS

Search for Salesforce accounts using criteria like name, industry, type, location, or contact information. Always provide at least one filter parameter; omitting all filters returns a broad, slow listing.

NameTypeRequiredDescription
namestringNoSearch by account name. Supports partial matches.
industrystringNoSearch by industry.
typestringNoSearch by account type.
billing_citystringNoSearch by billing city. Supports partial matches.
billing_statestringNoSearch by billing state/province. Supports partial matches.
billing_countrystringNoSearch by billing country. Supports partial matches.
phonestringNoSearch by phone number. Supports partial matches.
websitestringNoSearch by website. Supports partial matches.
limitintegerNoMaximum number of accounts to return. Hard-capped at approximately 2000 rows.
fieldsstringNoComma-separated list of Account field API names to retrieve.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_SEARCH_CONTACTS

Search Salesforce Contact records (not Leads — use SALESFORCE_SEARCH_LEADS for those) using name, email, phone, account, or title. All parameters support partial/fuzzy matching.

NameTypeRequiredDescription
namestringNoSearch by contact name (first name, last name, or full name). Supports partial matches.
emailstringNoSearch by email address. Supports partial matches.
phonestringNoSearch by phone number. Supports partial matches.
titlestringNoSearch by job title. Supports partial matches.
account_namestringNoSearch by associated account name. Supports partial matches.
limitintegerNoMaximum number of contacts to return. Maximum allowed is 2000.
fieldsstringNoComma-separated list of Contact fields to retrieve.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_SEARCH_LEADS

Search for Salesforce leads using criteria like name, email, phone, company, title, status, or lead source. Provide at least one search criterion; omitting all parameters results in a broad, slow listing.

NameTypeRequiredDescription
namestringNoSearch by lead name (first name, last name, or full name). Supports partial matches.
emailstringNoSearch by email address. Supports partial matches.
companystringNoSearch by company name. Supports partial matches.
phonestringNoSearch by phone number. Supports partial matches.
titlestringNoSearch by job title. Supports partial matches.
statusstringNoSearch by lead status.
lead_sourcestringNoSearch by lead source.
limitintegerNoMaximum number of leads to return. Maximum cap is 2000.
fieldsstringNoComma-separated list of Lead fields to retrieve.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_SEARCH_OPPORTUNITIES

Search for Salesforce opportunities using multiple criteria like name, account, stage, amount, close date, or status. Apply at least one filter to avoid broad result sets.

NameTypeRequiredDescription
namestringNoSearch by opportunity name. Supports partial matches.
account_namestringNoSearch by associated account name. Supports partial matches.
stage_namestringNoSearch by opportunity stage.
is_closedbooleanNoFilter by closed status. true for closed opportunities, false for open.
is_wonbooleanNoFilter by won status. true for won opportunities, false for lost.
amount_minnumberNoMinimum opportunity amount.
amount_maxnumberNoMaximum opportunity amount.
close_date_fromstringNoSearch opportunities with close date from this date (YYYY-MM-DD).
close_date_tostringNoSearch opportunities with close date before this date (YYYY-MM-DD).
lead_sourcestringNoSearch by lead source.
limitintegerNoMaximum number of opportunities to return. Maximum value is 2000.
fieldsstringNoComma-separated list of Opportunity fields to retrieve.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_SEND_EMAIL

Sends an email through Salesforce with options for recipients, attachments, and activity logging. Can partially succeed — check per-recipient success/failure status rather than treating the call as all-or-nothing.

NameTypeRequiredDescription
subjectstringYesSubject line of the email.
bodystringYesBody content of the email.
to_addressesstringYesEmail addresses of recipients. Can be a comma-delimited string or a list.
is_htmlbooleanNoWhether the email body is HTML formatted.
cc_addressesstringNoCC email addresses. Can be a comma-delimited string or a list.
bcc_addressesstringNoBCC email addresses. Can be a comma-delimited string or a list.
recipient_idstringNoID of a lead, contact, or person account to send the email to. Used for logging and merge fields.
related_record_idstringNoID of a related record (e.g., Account, Opportunity, Case) for logging and merge fields.
log_emailbooleanNoWhether to log the email on the recipient’s activity timeline.
sender_typestringNoType of sender: CurrentUser or OrgWideEmailAddress.
attachment_idsstringNoIDs of files to attach.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_SEND_EMAIL_FROM_TEMPLATE

Sends an email using a predefined Salesforce email template with merge field support.

NameTypeRequiredDescription
template_idstringYesID of the email template to use.
recipient_idstringYesID of the lead, contact, or person account to send the email to. Required when using templates.
log_emailbooleanNoWhether to log the email on the recipient’s activity timeline. Defaults to true for template emails.
sender_typestringNoType of sender: CurrentUser, DefaultWorkflowUser, or OrgWideEmailAddress.
related_record_idstringNoID of a related record (e.g., Case, Opportunity) to populate merge fields from a different object.
cc_addressesstringNoCC email addresses. Can be a comma-delimited string or a list.
bcc_addressesstringNoBCC email addresses. Can be a comma-delimited string or a list.
attachment_idsstringNoIDs of files to attach. Can be a comma-delimited string or a list.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_UPDATE_ACCOUNT

Updates an existing account in Salesforce with the specified changes. Only provided fields will be updated.

NameTypeRequiredDescription
account_idstringYesThe Salesforce ID of the account to update.
namestringNoUpdated account name. Leave empty to keep unchanged.
phonestringNoUpdated phone number. Leave empty to keep unchanged.
websitestringNoUpdated website URL. Leave empty to keep unchanged.
industrystringNoUpdated industry. Leave empty to keep unchanged.
typestringNoUpdated account type. Leave empty to keep unchanged.
descriptionstringNoUpdated description. Leave empty to keep unchanged.
billing_citystringNoUpdated billing city. Leave empty to keep unchanged.
billing_statestringNoUpdated billing state. Leave empty to keep unchanged.
billing_countrystringNoUpdated billing country. Leave empty to keep unchanged.
billing_streetstringNoUpdated billing street. Leave empty to keep unchanged.
billing_postal_codestringNoUpdated billing postal code. Leave empty to keep unchanged.
annual_revenuenumberNoUpdated annual revenue. Leave empty to keep unchanged.
number_of_employeesintegerNoUpdated number of employees. Leave empty to keep unchanged.
custom_fieldsobjectNoDictionary of custom field API names and their values.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_UPDATE_CONTACT

Updates an existing contact in Salesforce with the specified changes. Only provided fields will be updated. Returns HTTP 204 with no body on success; use SALESFORCE_GET_CONTACT to verify applied changes.

NameTypeRequiredDescription
contact_idstringYesThe Salesforce ID of the contact to update. Must be a valid 18-character Salesforce ID.
first_namestringNoUpdated first name. Leave empty to keep unchanged.
last_namestringNoUpdated last name. Leave empty to keep unchanged.
emailstringNoUpdated email address. Leave empty to keep unchanged.
phonestringNoUpdated primary phone number. Leave empty to keep unchanged.
mobile_phonestringNoUpdated mobile phone number. Leave empty to keep unchanged.
titlestringNoUpdated job title. Leave empty to keep unchanged.
departmentstringNoUpdated department. Leave empty to keep unchanged.
account_idstringNoUpdated Account ID association. Leave empty to keep unchanged.
mailing_streetstringNoUpdated mailing street address. Leave empty to keep unchanged.
mailing_citystringNoUpdated mailing city. Leave empty to keep unchanged.
mailing_statestringNoUpdated mailing state/province. Leave empty to keep unchanged.
mailing_countrystringNoUpdated mailing country. Leave empty to keep unchanged.
mailing_postal_codestringNoUpdated mailing postal/zip code. Leave empty to keep unchanged.
custom_fieldsobjectNoDictionary of custom field API names and their values.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_UPDATE_LEAD

Updates an existing lead in Salesforce with the specified changes. Only provided fields will be updated.

NameTypeRequiredDescription
lead_idstringYesThe Salesforce ID of the lead to update.
first_namestringNoUpdated first name. Leave empty to keep unchanged.
last_namestringNoUpdated last name. Leave empty to keep unchanged.
emailstringNoUpdated email address. Leave empty to keep unchanged.
phonestringNoUpdated phone number. Leave empty to keep unchanged.
companystringNoUpdated company name. Leave empty to keep unchanged.
titlestringNoUpdated job title. Leave empty to keep unchanged.
statusstringNoUpdated status. Must match a valid picklist value.
ratingstringNoUpdated rating. Must match a valid picklist value.
lead_sourcestringNoUpdated lead source. Leave empty to keep unchanged.
industrystringNoUpdated industry. Leave empty to keep unchanged.
annual_revenuenumberNoUpdated annual revenue.
number_of_employeesintegerNoUpdated number of employees.
citystringNoUpdated city. Leave empty to keep unchanged.
statestringNoUpdated state/province. Leave empty to keep unchanged.
countrystringNoUpdated country. Leave empty to keep unchanged.
descriptionstringNoUpdated description. Leave empty to keep unchanged.
custom_fieldsobjectNoCustom fields to update. Keys are Salesforce API names (e.g., Level__c).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_UPDATE_OPPORTUNITY

Updates an existing opportunity in Salesforce with the specified changes. Only provided fields will be updated. Returns HTTP 204 with empty body on success.

NameTypeRequiredDescription
opportunity_idstringYesThe Salesforce ID of the opportunity to update. Multiple opportunities may share the same name — apply additional filters or confirm the correct record before updating.
namestringNoUpdated opportunity name. Leave empty to keep unchanged.
stage_namestringNoUpdated stage. Must exactly match a stage defined in the org’s current sales process.
close_datestringNoUpdated close date in YYYY-MM-DD format. Leave empty to keep unchanged.
amountnumberNoUpdated amount.
account_idstringNoUpdated Account ID. Leave empty to keep unchanged.
descriptionstringNoUpdated description. Leave empty to keep unchanged.
lead_sourcestringNoUpdated lead source. Leave empty to keep unchanged.
probabilitynumberNoUpdated probability percentage (0–100).
next_stepstringNoUpdated next step. Leave empty to keep unchanged.
typestringNoUpdated opportunity type. Leave empty to keep unchanged.
custom_fieldsobjectNoDictionary of custom field API names and their values to update.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_QUERY_CONTACTS_BY_NAME

Queries Salesforce contacts by name using SOQL. Useful for quickly locating contacts without needing a record ID.

NameTypeRequiredDescription
namestringYesName or partial name of the contact to search for.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_ALL_CUSTOM_OBJECTS

Retrieves all Salesforce objects (standard and custom) with detailed metadata. Each object includes a custom field to identify custom objects.

NameTypeRequiredDescription
pageintegerNoPage number to retrieve (1-indexed). Defaults to 1.
page_sizeintegerNoNumber of objects to return per page. Defaults to 50. Must be between 1 and 200.
custom_onlybooleanNoIf true, only returns custom objects. Defaults to false.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_GET_ALL_FIELDS_FOR_OBJECT

Retrieves all fields (standard and custom) for a Salesforce object with complete metadata including field types, constraints, picklist values, and relationships.

NameTypeRequiredDescription
object_namestringYesAPI name of the Salesforce object to describe. Use standard object names (Account, Contact, Lead, Opportunity) or custom object API names ending in __c.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_DELETE_ACCOUNT

Permanently deletes an account from Salesforce. This action cannot be undone.

NameTypeRequiredDescription
account_idstringYesThe Salesforce ID of the account to delete.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

SALESFORCE_DELETE_CONTACT

Permanently deletes a contact from Salesforce. This action cannot be undone.

NameTypeRequiredDescription
contact_idstringYesThe Salesforce ID of the contact to delete.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.