Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Login address (URL)StringNohttps://login.salesforce.comLogin host for a custom sign-in site: your My Domain URL (needed for client credentials), or another login address.
Grant typeStringNoclient_credentialsclient_credentials: the connected app's run-as user; password: a named user with password and security token.
Client IDStringYesConsumer key of the connected app.
Client secretCredentialYesConsumer secret from the vault.
UsernameStringNoUser name (password grant only).
PasswordCredentialNoPassword from the vault (password grant only).
Security tokenCredentialNoSecurity token, added after the password, when the user's IP is not trusted (password grant only).
SessionStringNoKeep this sign-in for the steps after it under this name; the toolkit's default session when empty (G6).
ShareBooleanNofalseAgents this one runs use the same session (G6).
Sign-in siteStringNoWhere 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​

OutputTypeWhat it is
access_tokenCredentialAccess token; map it to access_token of later actions.
instance_urlStringInstance URL returned by Salesforce; map it to instance_url of later actions.