Salesforce

Use Salesforce in Sim to manage accounts, contacts, leads, opportunities, cases, and tasks, run reports and SOQL queries, and create custom fields and objects through the Tooling API.

Usage Instructions

Integrate Salesforce into your workflow. Manage accounts, contacts, leads, opportunities, cases, and tasks, run reports and SOQL queries, and manage org schema by creating custom fields and objects via the Tooling API.

Actions

Get Accounts from Salesforce

Retrieve accounts from Salesforce CRM

Input

ParameterTypeRequiredDescription
limitstringNoMaximum number of results (default: 100, max: 2000)
fieldsstringNoComma-separated field API names (e.g., "Id,Name,Industry,Phone")
orderBystringNoField and direction for sorting (e.g., "Name ASC" or "CreatedDate DESC")

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectAccounts data
↳ pagingobjectPagination information from Salesforce API
↳ nextRecordsUrlstringURL to fetch the next batch of records (present when done is false)
↳ totalSizenumberTotal number of records matching the query (may exceed records returned)
↳ donebooleanWhether all records have been returned (false if more batches exist)
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ accountsarrayArray of account objects
↳ successbooleanSalesforce operation success

Create Account in Salesforce

Create a new account in Salesforce CRM

Input

ParameterTypeRequiredDescription
namestringYesAccount name (required)
typestringNoAccount type (e.g., Customer, Partner, Prospect)
industrystringNoIndustry (e.g., Technology, Healthcare, Finance)
phonestringNoPhone number
websitestringNoWebsite URL
billingStreetstringNoBilling street address
billingCitystringNoBilling city
billingStatestringNoBilling state/province
billingPostalCodestringNoBilling postal code
billingCountrystringNoBilling country
descriptionstringNoAccount description
annualRevenuestringNoAnnual revenue as a number
numberOfEmployeesstringNoNumber of employees as an integer

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated account data
↳ idstringThe Salesforce ID of the newly created record
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the record was created (always true on success)

Update Account in Salesforce

Update an existing account in Salesforce CRM

Input

ParameterTypeRequiredDescription
accountIdstringYesSalesforce Account ID to update (18-character string starting with 001)
namestringNoAccount name
typestringNoAccount type (e.g., Customer, Partner, Prospect)
industrystringNoIndustry (e.g., Technology, Healthcare, Finance)
phonestringNoPhone number
websitestringNoWebsite URL
billingStreetstringNoBilling street address
billingCitystringNoBilling city
billingStatestringNoBilling state/province
billingPostalCodestringNoBilling postal code
billingCountrystringNoBilling country
descriptionstringNoAccount description
annualRevenuestringNoAnnual revenue as a number
numberOfEmployeesstringNoNumber of employees as an integer

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated account data
↳ idstringThe Salesforce ID of the updated record
↳ updatedbooleanWhether the record was updated (always true on success)

Delete Account from Salesforce

Delete an account from Salesforce CRM

Input

ParameterTypeRequiredDescription
accountIdstringYesSalesforce Account ID to delete (18-character string starting with 001)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted account data
↳ idstringThe Salesforce ID of the deleted record
↳ deletedbooleanWhether the record was deleted (always true on success)

Get Contacts from Salesforce

Get contact(s) from Salesforce - single contact if ID provided, or list if not

Input

ParameterTypeRequiredDescription
contactIdstringNoSalesforce Contact ID (18-character string starting with 003) to get a single contact
limitstringNoMaximum number of results (default: 100, max: 2000). Only for list query.
fieldsstringNoComma-separated field API names (e.g., "Id,FirstName,LastName,Email,Phone")
orderBystringNoField and direction for sorting (e.g., "LastName ASC"). Only for list query.

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectContact(s) data
↳ pagingobjectPagination information from Salesforce API
↳ nextRecordsUrlstringURL to fetch the next batch of records (present when done is false)
↳ totalSizenumberTotal number of records matching the query (may exceed records returned)
↳ donebooleanWhether all records have been returned (false if more batches exist)
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ contactsarrayArray of contacts (list query)
↳ contactobjectSingle contact (by ID)
↳ singleContactbooleanWhether single contact was returned
↳ successbooleanSalesforce operation success

Create Contact in Salesforce

Create a new contact in Salesforce CRM

Input

ParameterTypeRequiredDescription
lastNamestringYesLast name (required)
firstNamestringNoFirst name
emailstringNoEmail address
phonestringNoPhone number
accountIdstringNoSalesforce Account ID (18-character string starting with 001)
titlestringNoJob title
departmentstringNoDepartment
mailingStreetstringNoMailing street
mailingCitystringNoMailing city
mailingStatestringNoMailing state
mailingPostalCodestringNoMailing postal code
mailingCountrystringNoMailing country
descriptionstringNoContact description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated contact data
↳ idstringThe Salesforce ID of the newly created record
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the record was created (always true on success)

Update Contact in Salesforce

Update an existing contact in Salesforce CRM

Input

ParameterTypeRequiredDescription
contactIdstringYesSalesforce Contact ID to update (18-character string starting with 003)
lastNamestringNoLast name
firstNamestringNoFirst name
emailstringNoEmail address
phonestringNoPhone number
accountIdstringNoSalesforce Account ID (18-character string starting with 001)
titlestringNoJob title
departmentstringNoDepartment
mailingStreetstringNoMailing street
mailingCitystringNoMailing city
mailingStatestringNoMailing state
mailingPostalCodestringNoMailing postal code
mailingCountrystringNoMailing country
descriptionstringNoContact description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated contact data
↳ idstringThe Salesforce ID of the updated record
↳ updatedbooleanWhether the record was updated (always true on success)

Delete Contact from Salesforce

Delete a contact from Salesforce CRM

Input

ParameterTypeRequiredDescription
contactIdstringYesSalesforce Contact ID to delete (18-character string starting with 003)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted contact data
↳ idstringThe Salesforce ID of the deleted record
↳ deletedbooleanWhether the record was deleted (always true on success)

Get Leads from Salesforce

Retrieve lead(s) from Salesforce CRM

Input

ParameterTypeRequiredDescription
leadIdstringNoSalesforce Lead ID (18-character string starting with 00Q) to get a single lead
limitstringNoMaximum number of results to return (default: 100)
fieldsstringNoComma-separated list of field API names to return
orderBystringNoField and direction for sorting (e.g., LastName ASC)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectLead data
↳ pagingobjectPagination information from Salesforce API
↳ nextRecordsUrlstringURL to fetch the next batch of records (present when done is false)
↳ totalSizenumberTotal number of records matching the query (may exceed records returned)
↳ donebooleanWhether all records have been returned (false if more batches exist)
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ leadobjectSingle lead object (when leadId provided)
↳ leadsarrayArray of lead objects (when listing)
↳ singleLeadbooleanWhether single lead was returned
↳ successbooleanOperation success status

Create Lead in Salesforce

Create a new lead

Input

ParameterTypeRequiredDescription
lastNamestringYesLast name (required)
companystringYesCompany name (required)
firstNamestringNoFirst name
emailstringNoEmail address
phonestringNoPhone number
statusstringNoLead status (e.g., Open, Working, Closed)
leadSourcestringNoLead source (e.g., Web, Referral, Campaign)
titlestringNoJob title
descriptionstringNoLead description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated lead data
↳ idstringThe Salesforce ID of the newly created record
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the record was created (always true on success)

Update Lead in Salesforce

Update an existing lead

Input

ParameterTypeRequiredDescription
leadIdstringYesSalesforce Lead ID to update (18-character string starting with 00Q)
lastNamestringNoLast name
companystringNoCompany name
firstNamestringNoFirst name
emailstringNoEmail address
phonestringNoPhone number
statusstringNoLead status (e.g., Open, Working, Closed)
leadSourcestringNoLead source (e.g., Web, Referral, Campaign)
titlestringNoJob title
descriptionstringNoLead description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated lead data
↳ idstringThe Salesforce ID of the updated record
↳ updatedbooleanWhether the record was updated (always true on success)

Delete Lead from Salesforce

Delete a lead

Input

ParameterTypeRequiredDescription
leadIdstringYesSalesforce Lead ID to delete (18-character string starting with 00Q)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted lead data
↳ idstringThe Salesforce ID of the deleted record
↳ deletedbooleanWhether the record was deleted (always true on success)

Get Opportunities from Salesforce

Get opportunity(ies) from Salesforce

Input

ParameterTypeRequiredDescription
opportunityIdstringNoSalesforce Opportunity ID (18-character string starting with 006) to get a single opportunity
limitstringNoMaximum number of results to return (default: 100)
fieldsstringNoComma-separated list of field API names to return
orderBystringNoField and direction for sorting (e.g., CloseDate DESC)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectOpportunity data
↳ pagingobjectPagination information from Salesforce API
↳ nextRecordsUrlstringURL to fetch the next batch of records (present when done is false)
↳ totalSizenumberTotal number of records matching the query (may exceed records returned)
↳ donebooleanWhether all records have been returned (false if more batches exist)
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ opportunityobjectSingle opportunity object (when opportunityId provided)
↳ opportunitiesarrayArray of opportunity objects (when listing)
↳ successbooleanOperation success status

Create Opportunity in Salesforce

Create a new opportunity

Input

ParameterTypeRequiredDescription
namestringYesOpportunity name (required)
stageNamestringYesStage name (required, e.g., Prospecting, Qualification, Closed Won)
closeDatestringYesClose date in YYYY-MM-DD format (required)
accountIdstringNoSalesforce Account ID (18-character string starting with 001)
amountstringNoDeal amount as a number
probabilitystringNoWin probability as integer (0-100)
descriptionstringNoOpportunity description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated opportunity data
↳ idstringThe Salesforce ID of the newly created record
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the record was created (always true on success)

Update Opportunity in Salesforce

Update an existing opportunity

Input

ParameterTypeRequiredDescription
opportunityIdstringYesSalesforce Opportunity ID to update (18-character string starting with 006)
namestringNoOpportunity name
stageNamestringNoStage name (e.g., Prospecting, Qualification, Closed Won)
closeDatestringNoClose date in YYYY-MM-DD format
accountIdstringNoSalesforce Account ID (18-character string starting with 001)
amountstringNoDeal amount as a number
probabilitystringNoWin probability as integer (0-100)
descriptionstringNoOpportunity description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated opportunity data
↳ idstringThe Salesforce ID of the updated record
↳ updatedbooleanWhether the record was updated (always true on success)

Delete Opportunity from Salesforce

Delete an opportunity

Input

ParameterTypeRequiredDescription
opportunityIdstringYesSalesforce Opportunity ID to delete (18-character string starting with 006)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted opportunity data
↳ idstringThe Salesforce ID of the deleted record
↳ deletedbooleanWhether the record was deleted (always true on success)

Get Cases from Salesforce

Get case(s) from Salesforce

Input

ParameterTypeRequiredDescription
caseIdstringNoSalesforce Case ID (18-character string starting with 500) to get a single case
limitstringNoMaximum number of results to return (default: 100)
fieldsstringNoComma-separated list of field API names to return
orderBystringNoField and direction for sorting (e.g., CreatedDate DESC)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCase data
↳ pagingobjectPagination information from Salesforce API
↳ nextRecordsUrlstringURL to fetch the next batch of records (present when done is false)
↳ totalSizenumberTotal number of records matching the query (may exceed records returned)
↳ donebooleanWhether all records have been returned (false if more batches exist)
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ caseobjectSingle case object (when caseId provided)
↳ casesarrayArray of case objects (when listing)
↳ successbooleanOperation success status

Create Case in Salesforce

Create a new case

Input

ParameterTypeRequiredDescription
subjectstringYesCase subject (required)
statusstringNoStatus (e.g., New, Working, Escalated)
prioritystringNoPriority (e.g., Low, Medium, High)
originstringNoOrigin (e.g., Phone, Email, Web)
contactIdstringNoSalesforce Contact ID (18-character string starting with 003)
accountIdstringNoSalesforce Account ID (18-character string starting with 001)
descriptionstringNoCase description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated case data
↳ idstringThe Salesforce ID of the newly created record
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the record was created (always true on success)

Update Case in Salesforce

Update an existing case

Input

ParameterTypeRequiredDescription
caseIdstringYesSalesforce Case ID to update (18-character string starting with 500)
subjectstringNoCase subject
statusstringNoStatus (e.g., New, Working, Escalated, Closed)
prioritystringNoPriority (e.g., Low, Medium, High)
originstringNoOrigin (e.g., Phone, Email, Web)
contactIdstringNoSalesforce Contact ID (18-character string starting with 003)
accountIdstringNoSalesforce Account ID (18-character string starting with 001)
descriptionstringNoCase description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated case data
↳ idstringThe Salesforce ID of the updated record
↳ updatedbooleanWhether the record was updated (always true on success)

Delete Case from Salesforce

Delete a case

Input

ParameterTypeRequiredDescription
caseIdstringYesSalesforce Case ID to delete (18-character string starting with 500)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted case data
↳ idstringThe Salesforce ID of the deleted record
↳ deletedbooleanWhether the record was deleted (always true on success)

Get Tasks from Salesforce

Get task(s) from Salesforce

Input

ParameterTypeRequiredDescription
taskIdstringNoSalesforce Task ID (18-character string starting with 00T) to get a single task
limitstringNoMaximum number of results to return (default: 100)
fieldsstringNoComma-separated list of field API names to return
orderBystringNoField and direction for sorting (e.g., ActivityDate DESC)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectTask data
↳ pagingobjectPagination information from Salesforce API
↳ nextRecordsUrlstringURL to fetch the next batch of records (present when done is false)
↳ totalSizenumberTotal number of records matching the query (may exceed records returned)
↳ donebooleanWhether all records have been returned (false if more batches exist)
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ taskobjectSingle task object (when taskId provided)
↳ tasksarrayArray of task objects (when listing)
↳ successbooleanOperation success status

Create Task in Salesforce

Create a new task

Input

ParameterTypeRequiredDescription
subjectstringYesTask subject (required)
statusstringNoStatus (e.g., Not Started, In Progress, Completed)
prioritystringNoPriority (e.g., Low, Normal, High)
activityDatestringNoDue date in YYYY-MM-DD format
whoIdstringNoRelated Contact ID (003...) or Lead ID (00Q...)
whatIdstringNoRelated Account ID (001...) or Opportunity ID (006...)
descriptionstringNoTask description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated task data
↳ idstringThe Salesforce ID of the newly created record
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the record was created (always true on success)

Update Task in Salesforce

Update an existing task

Input

ParameterTypeRequiredDescription
taskIdstringYesSalesforce Task ID to update (18-character string starting with 00T)
subjectstringNoTask subject
statusstringNoStatus (e.g., Not Started, In Progress, Completed)
prioritystringNoPriority (e.g., Low, Normal, High)
activityDatestringNoDue date in YYYY-MM-DD format
whoIdstringNoRelated Contact ID (003...) or Lead ID (00Q...)
whatIdstringNoRelated Account ID (001...) or Opportunity ID (006...)
descriptionstringNoTask description

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated task data
↳ idstringThe Salesforce ID of the updated record
↳ updatedbooleanWhether the record was updated (always true on success)

Delete Task from Salesforce

Delete a task

Input

ParameterTypeRequiredDescription
taskIdstringYesSalesforce Task ID to delete (18-character string starting with 00T)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted task data
↳ idstringThe Salesforce ID of the deleted record
↳ deletedbooleanWhether the record was deleted (always true on success)

List Reports from Salesforce

Get a list of up to 200 recently viewed reports for the current user

Input

ParameterTypeRequiredDescription
searchTermstringNoFilter reports by name (case-insensitive partial match)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReports data
↳ totalReturnednumberNumber of items returned
↳ successbooleanSalesforce operation success
↳ reportsarrayArray of report objects

Get Report Metadata from Salesforce

Get the describe (definition and metadata) for a specific report

Input

ParameterTypeRequiredDescription
reportIdstringYesSalesforce Report ID (18-character string starting with 00O)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReport metadata
↳ reportobjectReport metadata object
↳ reportIdstringReport ID
↳ successbooleanSalesforce operation success

Run Report in Salesforce

Execute a report and retrieve the results

Input

ParameterTypeRequiredDescription
reportIdstringYesSalesforce Report ID (18-character string starting with 00O)
includeDetailsstringNoInclude detail rows (true/false, default: true)
filtersstringNoJSON array of report filter objects to apply

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReport results
↳ reportIdstringReport ID
↳ reportMetadataobjectReport metadata including name, format, and filter definitions
↳ reportExtendedMetadataobjectExtended metadata for aggregate columns and groupings
↳ factMapobjectReport data organized by groupings with aggregates and row data
↳ groupingsDownobjectRow grouping hierarchy and values
↳ groupingsAcrossobjectColumn grouping hierarchy and values
↳ hasDetailRowsbooleanWhether the report includes detail-level row data
↳ allDatabooleanWhether all data is returned (false if truncated due to size limits)
↳ reportNamestringDisplay name of the report
↳ reportFormatstringReport format type (TABULAR, SUMMARY, MATRIX, JOINED)
↳ successbooleanSalesforce operation success

List Report Types from Salesforce

Get a list of available report types

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectReport types data
↳ totalReturnednumberNumber of items returned
↳ successbooleanSalesforce operation success
↳ reportTypesarrayArray of report type objects

List Dashboards from Salesforce

Get a list of recently used dashboards for the current user

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDashboards data
↳ totalReturnednumberNumber of items returned
↳ successbooleanSalesforce operation success
↳ dashboardsarrayArray of dashboard objects

Get Dashboard from Salesforce

Get details and results for a specific dashboard

Input

ParameterTypeRequiredDescription
dashboardIdstringYesSalesforce Dashboard ID (18-character string starting with 01Z)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDashboard data
↳ dashboardobjectFull dashboard details object
↳ dashboardIdstringDashboard ID
↳ componentsarrayArray of dashboard component data with visualizations and filters
↳ dashboardNamestringDisplay name of the dashboard
↳ dashboardMetadataobjectStructured dashboard metadata (attributes, component definitions, layout)
↳ runningUserobjectUser context under which the dashboard data was retrieved
↳ successbooleanSalesforce operation success

Refresh Dashboard in Salesforce

Refresh a dashboard to get the latest data

Input

ParameterTypeRequiredDescription
dashboardIdstringYesSalesforce Dashboard ID (18-character string starting with 01Z)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectRefreshed dashboard data
↳ dashboardobjectFull dashboard details object
↳ dashboardIdstringDashboard ID
↳ componentsarrayArray of dashboard component data with fresh visualizations
↳ statusobjectDashboard refresh status (dashboardStatus), when returned by the refresh
↳ statusUrlstringURL of the status resource to poll for refresh completion
↳ dashboardNamestringDisplay name of the dashboard
↳ dashboardMetadataobjectStructured dashboard metadata (attributes, component definitions, layout)
↳ successbooleanSalesforce operation success

Run SOQL Query in Salesforce

Execute a custom SOQL query to retrieve data from Salesforce

Input

ParameterTypeRequiredDescription
querystringYesSOQL query to execute (e.g., SELECT Id, Name FROM Account LIMIT 10)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectQuery results
↳ recordsarrayArray of sObject records matching the query
↳ querystringThe executed SOQL query
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ successbooleanSalesforce operation success

Get More Query Results from Salesforce

Retrieve additional query results using the nextRecordsUrl from a previous query

Input

ParameterTypeRequiredDescription
nextRecordsUrlstringYesThe nextRecordsUrl value from a previous query response (e.g., /services/data/v59.0/query/01g...)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectQuery results
↳ recordsarrayArray of sObject records matching the query
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ successbooleanSalesforce operation success

Describe Salesforce Object

Get metadata and field information for a Salesforce object

Input

ParameterTypeRequiredDescription
objectNamestringYesSalesforce object API name (e.g., Account, Contact, Lead, Custom_Object__c)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectObject metadata
↳ objectNamestringAPI name of the object (e.g., Account, Contact)
↳ labelstringHuman-readable singular label for the object
↳ labelPluralstringHuman-readable plural label for the object
↳ fieldsarrayArray of field metadata objects
↳ namestringAPI name of the field
↳ labelstringDisplay label of the field
↳ typestringField data type (string, boolean, int, double, date, etc.)
↳ lengthnumberMaximum length for text fields
↳ precisionnumberPrecision for numeric fields
↳ scalenumberScale for numeric fields
↳ nillablebooleanWhether the field can be null
↳ uniquebooleanWhether values must be unique
↳ createablebooleanWhether field can be set on create
↳ updateablebooleanWhether field can be updated
↳ defaultedOnCreatebooleanWhether field has default value on create
↳ calculatedbooleanWhether field is a formula field
↳ autoNumberbooleanWhether field is auto-number
↳ externalIdbooleanWhether field is an external ID
↳ idLookupbooleanWhether field can be used in ID lookup
↳ inlineHelpTextstringHelp text for the field
↳ picklistValuesarrayAvailable picklist values for picklist fields
↳ referenceToarrayObjects this field can reference (for lookup fields)
↳ relationshipNamestringRelationship name for lookup fields
↳ custombooleanWhether this is a custom field
↳ filterablebooleanWhether field can be used in SOQL filter
↳ groupablebooleanWhether field can be used in GROUP BY
↳ sortablebooleanWhether field can be used in ORDER BY
↳ keyPrefixstringThree-character prefix used in record IDs (e.g., "001" for Account)
↳ queryablebooleanWhether the object can be queried via SOQL
↳ createablebooleanWhether records can be created for this object
↳ updateablebooleanWhether records can be updated for this object
↳ deletablebooleanWhether records can be deleted for this object
↳ childRelationshipsarrayArray of child relationship metadata for related objects
↳ recordTypeInfosarrayArray of record type information for the object
↳ fieldCountnumberTotal number of fields on the object
↳ successbooleanSalesforce operation success

List Salesforce Objects

Get a list of all available Salesforce objects

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectObjects list
↳ objectsarrayArray of sObject metadata
↳ namestringAPI name of the object
↳ labelstringDisplay label of the object
↳ labelPluralstringPlural display label
↳ keyPrefixstringThree-character ID prefix
↳ custombooleanWhether this is a custom object
↳ queryablebooleanWhether object can be queried
↳ createablebooleanWhether records can be created
↳ updateablebooleanWhether records can be updated
↳ deletablebooleanWhether records can be deleted
↳ searchablebooleanWhether object is searchable
↳ triggerablebooleanWhether triggers are supported
↳ layoutablebooleanWhether page layouts are supported
↳ replicateablebooleanWhether object can be replicated
↳ retrieveablebooleanWhether records can be retrieved
↳ undeletablebooleanWhether records can be undeleted
↳ urlsobjectURLs for accessing object resources
↳ encodingstringCharacter encoding for the organization (e.g., UTF-8)
↳ maxBatchSizenumberMaximum number of records that can be returned in a single query batch (typically 200)
↳ totalReturnednumberNumber of objects returned
↳ successbooleanSalesforce operation success

Create Custom Field in Salesforce

Create a custom field on a Salesforce object (e.g., Account) using the Tooling API

Input

ParameterTypeRequiredDescription
objectNamestringYesAPI name of the object to add the field to (e.g., Account, Contact, Lead, MyObject__c)
fieldNamestringYesAPI name of the new field; the __c suffix is added automatically (e.g., Region)
labelstringNoDisplay label shown in the UI (defaults to the field name when omitted)
fieldTypestringYesField data type: Text, TextArea, LongTextArea, Html, Number, Currency, Percent, Checkbox, Date, DateTime, Time, Phone, Email, Url, Picklist, or MultiselectPicklist
lengthnumberNoMaximum length for Text (1-255), LongTextArea, Html, or MultiselectPicklist fields
precisionnumberNoTotal number of digits for Number, Currency, or Percent fields (1-18)
scalenumberNoNumber of digits to the right of the decimal for numeric fields
visibleLinesnumberNoNumber of visible lines for LongTextArea, Html, or MultiselectPicklist fields
requiredbooleanNoWhether the field is required on record create/edit
uniquebooleanNoWhether the field enforces unique values
externalIdbooleanNoWhether the field is an external ID (for Text, Number, or Email fields)
defaultValuestringNoDefault value; for Checkbox fields use true or false
descriptionstringNoInternal description of the field
inlineHelpTextstringNoHelp text shown next to the field in the UI
picklistValuesstringNoComma-separated values for Picklist or MultiselectPicklist fields

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated custom field metadata
↳ idstringTooling API Id of the newly created custom field
↳ fullNamestringFull API name of the field, including object (e.g., Account.Region__c)
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the field was created (always true on success)

Update Custom Field in Salesforce

Update an existing custom field on a Salesforce object using the Tooling API

Input

ParameterTypeRequiredDescription
fieldIdstringYesTooling API Id of the custom field to update (find it via the Tooling Query tool)
labelstringNoDisplay label shown in the UI
lengthnumberNoMaximum length for Text, LongTextArea, Html, or MultiselectPicklist fields
precisionnumberNoTotal number of digits for Number, Currency, or Percent fields
scalenumberNoNumber of digits to the right of the decimal for numeric fields
visibleLinesnumberNoNumber of visible lines for LongTextArea, Html, or MultiselectPicklist fields
requiredbooleanNoWhether the field is required on record create/edit
uniquebooleanNoWhether the field enforces unique values
externalIdbooleanNoWhether the field is an external ID
defaultValuestringNoDefault value; for Checkbox fields use true or false
descriptionstringNoInternal description of the field
inlineHelpTextstringNoHelp text shown next to the field in the UI
picklistValuesstringNoComma-separated values to add to a Picklist or MultiselectPicklist field (existing values are kept)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated custom field metadata
↳ idstringTooling API Id of the updated custom field
↳ updatedbooleanWhether the field was updated (always true on success)

Delete Custom Field in Salesforce

Delete a custom field from a Salesforce object using the Tooling API

Input

ParameterTypeRequiredDescription
fieldIdstringYesTooling API Id of the custom field to delete (find it via the Tooling Query tool)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeleted custom field metadata
↳ idstringTooling API Id of the deleted custom field
↳ deletedbooleanWhether the field was deleted (always true on success)

Create Custom Object in Salesforce

Create a custom object in Salesforce using the Tooling API

Input

ParameterTypeRequiredDescription
objectNamestringYesAPI name of the new object; the __c suffix is added automatically (e.g., Project)
labelstringYesSingular display label for the object (e.g., Project)
pluralLabelstringYesPlural display label for the object (e.g., Projects)
nameFieldLabelstringNoLabel for the standard Name field (defaults to "<label> Name")
descriptionstringNoInternal description of the object
sharingModelstringNoOrg-wide sharing model: ReadWrite, Read, Private, or ControlledByParent (default ReadWrite)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated custom object metadata
↳ idstringTooling API Id of the newly created custom object
↳ fullNamestringFull API name of the object (e.g., Project__c)
↳ successbooleanWhether the create operation was successful
↳ createdbooleanWhether the object was created (always true on success)

Run Tooling SOQL Query in Salesforce

Execute a SOQL query against the Tooling API to inspect metadata objects

Input

ParameterTypeRequiredDescription
querystringYesTooling SOQL query (e.g., SELECT Id, DeveloperName FROM CustomField WHERE TableEnumOrId = 'Account')

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectTooling query results
↳ recordsarrayArray of Tooling API records matching the query
↳ querystringThe executed Tooling SOQL query
↳ metadataobjectResponse metadata
↳ totalReturnednumberNumber of records returned in this response
↳ hasMorebooleanWhether more records exist (inverse of done)
↳ successbooleanSalesforce operation success

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

Salesforce Case Status Changed

Trigger workflow when a case status changes

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-Sim-Webhook-Secret.

Output

ParameterTypeDescription
eventTypestringThe type of event
simEventTypestringOptional alias from the payload (simEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (Case)
recordIdstringCase ID
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringCase ID
↳ SubjectstringCase subject
↳ StatusstringCurrent case status
↳ PrioritystringCase priority
↳ CaseNumberstringCase number
↳ AccountIdstringRelated Account ID
↳ ContactIdstringRelated Contact ID
↳ OwnerIdstringCase owner ID
previousStatusstringPrevious case status
newStatusstringNew case status
payloadjsonFull webhook payload

Salesforce Opportunity Stage Changed

Trigger workflow when an opportunity stage changes

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-Sim-Webhook-Secret.

Output

ParameterTypeDescription
eventTypestringThe type of event
simEventTypestringOptional alias from the payload (simEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (Opportunity)
recordIdstringOpportunity ID
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringOpportunity ID
↳ NamestringOpportunity name
↳ StageNamestringCurrent stage name
↳ AmountstringDeal amount
↳ CloseDatestringExpected close date
↳ ProbabilitystringWin probability
↳ AccountIdstringRelated Account ID (standard Opportunity field)
↳ OwnerIdstringOpportunity owner ID
previousStagestringPrevious stage name
newStagestringNew stage name
payloadjsonFull webhook payload

Salesforce Record Created

Trigger workflow when a Salesforce record is created

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-Sim-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event (e.g., created, updated, deleted)
simEventTypestringOptional alias from the payload (simEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (e.g., Account, Contact, Lead)
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringRecord ID
↳ NamestringRecord name
↳ CreatedDatestringRecord creation date
↳ LastModifiedDatestringLast modification date
↳ OwnerIdstringRecord owner ID (standard field when sent in the Flow body)
↳ SystemModstampstringSystem modstamp from the record (ISO 8601) when included in the payload
changedFieldsjsonFields that were changed (for update events)
payloadjsonFull webhook payload

Salesforce Record Deleted

Trigger workflow when a Salesforce record is deleted

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-Sim-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event (e.g., created, updated, deleted)
simEventTypestringOptional alias from the payload (simEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (e.g., Account, Contact, Lead)
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringRecord ID
↳ NamestringRecord name
↳ CreatedDatestringRecord creation date
↳ LastModifiedDatestringLast modification date
↳ OwnerIdstringRecord owner ID (standard field when sent in the Flow body)
↳ SystemModstampstringSystem modstamp from the record (ISO 8601) when included in the payload
changedFieldsjsonFields that were changed (for update events)
payloadjsonFull webhook payload

Salesforce Record Updated

Trigger workflow when a Salesforce record is updated

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-Sim-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event (e.g., created, updated, deleted)
simEventTypestringOptional alias from the payload (simEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type (e.g., Account, Contact, Lead)
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordobjectrecord output from the tool
↳ IdstringRecord ID
↳ NamestringRecord name
↳ CreatedDatestringRecord creation date
↳ LastModifiedDatestringLast modification date
↳ OwnerIdstringRecord owner ID (standard field when sent in the Flow body)
↳ SystemModstampstringSystem modstamp from the record (ISO 8601) when included in the payload
changedFieldsjsonFields that were changed (for update events)
payloadjsonFull webhook payload

Salesforce Webhook (All Events)

Trigger workflow on any Salesforce webhook event

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your Salesforce HTTP Callout as Bearer token or X-Sim-Webhook-Secret.
objectTypestringNoWhen set, the payload must include matching object type metadata (for example objectType, sobjectType, or attributes.type) or the event is rejected.

Output

ParameterTypeDescription
eventTypestringThe type of event
simEventTypestringOptional alias from the payload (simEventType). Empty when only eventType is sent.
objectTypestringSalesforce object type
recordIdstringID of the affected record
timestampstringWhen the event occurred (ISO 8601)
recordjsonFull record data
payloadjsonFull webhook payload

OAuth Scopes

Sim requests these scopes when someone connects a Salesforce account. On a self-hosted deployment, register your own app with the provider using the settings below. See Integrations & OAuth for the full setup.

SettingValue
Redirect URIProduction or Developer Edition: <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/salesforce
Sandbox: <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/salesforce-sandbox
Environment variablesSALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET
ScopeDescription
apiAccess Salesforce API
refresh_tokenMaintain long-term access to Salesforce account
openidStandard authentication