Salesforce
Salesforce REST API (one org, refresh-token or client-credentials OAuth), SOQL queries with batch paging, SOSL search, records get/create/update/upsert by external id, describe, limits, updated/deleted ids, deletes are node only
Beta v0.1.0 Node.js 17 actions
About
A Graphrt plugin for the Salesforce REST API of one org: SOQL queries with batch paging, SOSL search, sObject records (get, create, update, upsert by external id, delete), object metadata (describe), org limits, updated/deleted record ids and recently viewed records.
What it can do
- Metadata: get_limits, describe_global (every sObject), describe_sobject (fields, picklists, relationships)
- Queries: query (SOQL), query_all (incl. deleted/archived), query_more (next batch), search (SOSL), list_recently_viewed, get_updated / get_deleted (ids changed in a time range, for sync)
- Records: get_record, get_record_by_external_id, create_record, update_record (PATCH), upsert_record (PATCH by external id), delete_record (node only)
- api_request: any other endpoint under /services/data/<version> (GET only for agents), e.g. /sobjects/Account/listviews, /composite/... from nodes
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Org limits
salesforce.get_limits - List objects
salesforce.describe_global - Describe object
salesforce.describe_sobject - SOQL query
salesforce.query - SOQL query incl. deleted
salesforce.query_all - Next query batch
salesforce.query_more - SOSL search
salesforce.search - Recently viewed
salesforce.list_recently_viewed - Updated record ids
salesforce.get_updated - Deleted record ids
salesforce.get_deleted
Show all 17 actions
- Get record
salesforce.get_record - Get record by external id
salesforce.get_record_by_external_id - Create record
salesforce.create_record - Update record
salesforce.update_record - Upsert record
salesforce.upsert_record - Delete record
salesforce.delete_record - Salesforce REST API request
salesforce.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
SALESFORCE_INSTANCE_URLRequiredThe org's URL, e.g. https://acme.my.salesforce.com (must be an https *.salesforce.com host, no path) -
SALESFORCE_CLIENT_IDRequiredConsumer key of the app -
SALESFORCE_CLIENT_SECRETRequiredConsumer secret -
SALESFORCE_REFRESH_TOKENFor the refresh token flowA user's refresh token, when unset, the client credentials flow is used -
SALESFORCE_LOGIN_URLOptionalToken host: default https://login.salesforce.com for refresh tokens (https://test.salesforce.com for sandboxes) and the instance URL for client credentials -
SALESFORCE_API_VERSIONOptionalREST API version, default v66.0 (Spring '26), e.g. v64.0 -
SALESFORCE_TOOL_TOKEN_SOURCE
How to use it
In Graphrt Desktop
- Open Plugins and search for Salesforce.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install salesforce workflow.yaml
- id: accounts
type: salesforce.query
soql: "SELECT Id, Name FROM Account WHERE CreatedDate = LAST_N_DAYS:7"
- id: lead
type: salesforce.upsert_record
sobject: Lead
external_id_field: Web_Form_Id__c
external_id: "{{#start.form_id#}}"
fields: { LastName: "{{#start.name#}}", Company: "{{#start.company#}}", Email: "{{#start.email#}}" }