Authenticate
Get an access token from Salesforce with a connected app (client credentials, or user name and password) for the other Salesforce actions.
Command in the Salesforce toolkit · id ooa.salesforce/authenticate · 10 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Login address (URL) | String | No | https://login.salesforce.com | Login host for a custom sign-in site: your My Domain URL (needed for client credentials), or another login address. |
| Grant type | String | No | client_credentials | client_credentials: the connected app's run-as user; password: a named user with password and security token. |
| Client ID | String | Yes | Consumer key of the connected app. | |
| Client secret | Credential | Yes | Consumer secret from the vault. | |
| Username | String | No | User name (password grant only). | |
| Password | Credential | No | Password from the vault (password grant only). | |
| Security token | Credential | No | Security token, added after the password, when the user's IP is not trusted (password grant only). | |
| Session | String | No | Keep this sign-in for the steps after it under this name; the toolkit's default session when empty (G6). | |
| Share | Boolean | No | false | Agents this one runs use the same session (G6). |
| Sign-in site | String | No | Where to sign in: production (login.salesforce.com), sandbox (test.salesforce.com) or custom (the login URL you give, such as your My Domain). When empty, the login URL is used (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| access_token | Credential | Access token; map it to access_token of later actions. |
| instance_url | String | Instance URL returned by Salesforce; map it to instance_url of later actions. |