@orchesty/connector-sales-force
v2.0.0
Published
[](https://www.npmjs.com/package/@orchesty/connector-sales-force) [](https://github.com/Orchesty/orchesty-n
Readme
Salesforce Connector
An Orchesty connector for Salesforce, the world's leading CRM platform for managing customer relationships, sales pipelines, and business processes.
Application Type
OAuth 2.0
This connector uses the Salesforce OAuth 2.0 authorization flow. After entering your credentials in Orchesty, you will be redirected to Salesforce to authorize access. The API base URL is built from your Salesforce instance name: https://{instance_name}.my.salesforce.com/services/data/v55.0/sobjects.
| Field | Description |
|---|---|
| client_id | Connected App Consumer Key from Salesforce Setup |
| client_secret | Connected App Consumer Secret from Salesforce Setup |
| instance_name | Your Salesforce instance name (e.g. mycompany) |
Components
| Class | Type | Description |
|---|---|---|
| SalesForceCreateRecordConnector | Connector | Creates a new Account record via POST /Account/ |
| SalesForceUpdateRecordConnector | Connector | Updates an existing Account record via PATCH /Account/{recordId} |
Setup
Credentials
- Log in to Salesforce and navigate to Setup → App Manager.
- Create a new Connected App, enable OAuth, and add the Orchesty callback URL to Callback URLs.
- Note the Consumer Key (Client ID) and Consumer Secret (Client Secret).
- Your instance name is the subdomain of your Salesforce org URL (e.g.
mycompanyfrommycompany.my.salesforce.com). - In Orchesty, open the Salesforce application settings, enter the credentials, and complete the OAuth authorization flow.
API Documentation
Salesforce REST API: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm
Installation & Usage
Install the package:
npm install @orchesty/connector-sales-force @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-sales-force @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import { OAuth2Provider } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Provider/OAuth2/OAuth2Provider';
import SalesForceApplication from '@orchesty/connector-sales-force/dist/SalesForceApplication';
import SalesForceCreateRecordConnector from '@orchesty/connector-sales-force/dist/Connector/SalesForceCreateRecordConnector';
import SalesForceUpdateRecordConnector from '@orchesty/connector-sales-force/dist/Connector/SalesForceUpdateRecordConnector';
const app = new SalesForceApplication(container.get(OAuth2Provider));
container.setApplication(app);
container.setNode(new SalesForceCreateRecordConnector(), app);
container.setNode(new SalesForceUpdateRecordConnector(), app);License
This connector is released under the Apache License 2.0. See the LICENSE file for the full license text.
Contributing
Contributions are welcome! This connector is part of the open-source Orchesty Node.js Connectors monorepo.
For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the Contributing to Connectors guide.
All contributions should include:
- Source code in
src/following the existing connector structure - Tests in
src/**/__tests__/withinput.json,mock.json, andoutput.jsonfixtures - An updated
CHANGELOG.mdentry
