UiPath Documentation
integration-service
latest
false
Importante :
Este contenido se ha traducido mediante traducción automática. Los paquetes de conectores disponibles en Integration Service están traducidos con traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.
UiPath logo, featuring letters U and I in white

Guía de usuario de Integration Service

Última actualización 24 de abr. de 2026

Autenticación de Salesforce

Supported editions

To authenticate on Salesforce, you must have an edition that includes API support. The Salesforce connector works with the following edition (not limited to):

  • Salesforce Sales Cloud (Enterprise or Professional with API support)

For all other editions not listed, contact your UiPath representative for assistance.

Nota:

The connector uses the Salesforce REST API. Confirm that your Salesforce edition includes API access before proceeding.

Requisitos previos

Para crear una conexión, necesita las siguientes credenciales:

  • Código de autorización OAuth 2.0: nombre de usuario, contraseña.
  • Contraseña OAuth 2.0: nombre de usuario, contraseña, token de seguridad.
  • Traiga su propia aplicación OAuth 2.0: ID de cliente, Secreto de cliente.
  • Token de acceso personal (PAT): clave codificada JWT base64, audiencia, emisor, asunto.

Additionally, you may need an authenticator application installed on your mobile phone if your Salesforce organization enforces multi-factor authentication (MFA).

Before creating a connection, also ensure the following:

  1. You have a Salesforce Sales Cloud Enterprise edition, Professional edition with API support, or another supported edition listed above.
  2. You have Administrator privileges in Salesforce Sales Cloud to set up applications. Contact your system administrator if you do not have these privileges.
  3. The API Enabled permission is activated for your Salesforce user profile. To verify: open Salesforce and go to Setup > Administration > Users > Profiles, select the relevant profile, and confirm that API Enabled is checked.
Consejo:
  • How to check your assigned profile: Click your profile avatar in the top-right corner of Salesforce, then click Settings > Advanced User Details. Your profile name is listed in the Profile field. Alternatively, go to Setup > Administration > Users > Users and check the Profile column for your username.
  • We recommend provisioning and assigning a dedicated Salesforce integration user for UiPath connections. Connections inherit the permissions of the account used for authentication, including access to fields and objects. Using a dedicated user ensures consistent, auditable access.

Métodos de autenticación

The UiPath Salesforce connector supports the following authentication methods. The credentials required depend on the method you choose:

Auth methodDescripciónRequired credentials
Código de autorización OAuth 2.0Redirects to Salesforce for login and consent.Salesforce username and password
Contraseña OAuth 2.0Legacy authentication for older Salesforce accounts/apps. Blocked by default for new orgs as per Salesforce release notes. Only use for special scenarios.Username, password, security token
JWT Bearer (PAT)JSON Web Token-based server-to-server authentication using a digital certificate. Ideal for unattended automations where no interactive login is possible.JWT base64 encoded private key, Audience, Issuer (Client ID), Subject (username)
Bring Your Own App (BYOA)Uses a private application you create in Salesforce. Recommended by UiPath since it gives you full control over scopes, policies, and branding.Client ID, Client Secret (from your Salesforce External Client App)

To learn more about the different types of authentication available for Salesforce, refer to the official Salesforce documentation in Create an External Client App.

Código de autorización OAuth 2.0

This method uses the public UiPath connected application and redirects you to Salesforce for authentication. Follow these steps:

  1. Select Orchestrator from the UiPath product launcher.
  2. Select a folder, then navigate to the Connections tab.
  3. Selecciona Añadir conexión.
  4. Search for and select the Salesforce connector from the list.
  5. Select the environment: Production or Sandbox.
  6. Select OAuth 2.0 Authorization Code as the authentication method.
  7. Select Connect. You will be redirected to the Salesforce login page.
  8. Enter your Salesforce username and password.
  9. If prompted by MFA, enter the verification code from your authenticator app.
  10. Review the permissions requested by UiPath and click Allow.
  11. You are redirected back to Orchestrator. The connection status should show as Connected.

Custom domain: If your Salesforce organization uses a custom domain, click Use Custom Domain on the Salesforce login screen, enter your custom domain URL (e.g., yourcompany.my.salesforce.com), then click Continue and enter your credentials.

Imagen de documentos

Nota:

This method uses the public UiPath Connected App. If you encounter an OAUTH_APPROVAL_ERROR_GENERIC error, see the Troubleshooting section.

OAuth 2.0 Password (legacy)

ADVERTENCIA:

This authentication method is blocked by default for new Salesforce organizations. Salesforce has deprecated the Username-Password OAuth flow for most use cases. Only use this method if your organization explicitly requires it for backward compatibility.

If you need to use this method, first enable it by following the Salesforce documentation: OAuth 2.0 Username-Password Flow for Special Scenarios. Then:

  1. Follow steps 1–5 from the OAuth 2.0 Authorization Code instructions above.
  2. Select OAuth 2.0 Password as the authentication method.
  3. Enter your Salesforce username, password, and security token.
  4. Select Connect.

Obtaining your security token: In Salesforce, go to your profile settings > Reset My Security Token. The token is sent to your email. Append it to your password when connecting.

JWT Bearer authentication (PAT)

JWT bearer authentication uses a digital certificate to sign a JWT request, enabling server-to-server integration without interactive login. This is ideal for unattended automations. Follow these steps:

  1. Create a private key and self-signed digital certificate. Refer to the Salesforce guide: Create a Private Key and Self-Signed Digital Certificate.
  2. Create an External Client App in Salesforce. Go to Setup > Apps > External Client Apps > External Client App Manager and click New External Client App. Upload your digital certificate in the app configuration. (See the BYOA / External Client App Setup section below for detailed steps.)
  3. Configure the JWT Bearer flow. In the External Client App settings, enable the JWT Bearer flow under Flow Enablement. Assign the required OAuth scopes.
  4. Pre-authorize the app for your integration user. Go to Setup > Connected Apps > Manage Connected Apps, find your app, and under Policies, set Permitted Users to "Admin approved users are pre-authorized." Then add the relevant profile or permission set.
  5. In UiPath Orchestrator, select Orchestrator > folder > Connections > Add connection > Salesforce.
  6. Select the environment (Production or Sandbox).
  7. Select Personal Access Token (PAT) as the authentication method.
  8. Introduce las credenciales necesarias:
    • JWT base64 encoded key: Your private key in base64 format.
    • Issuer: The OAuth Client ID (Consumer Key) from your External Client App.
    • Subject: The username of the Salesforce user you want to authenticate as.
    • Audience: The Salesforce token endpoint URL (e.g., https://login.salesforce.com for production or https://test.salesforce.com for sandbox).
  9. Select Connect.

For more details on enabling JWT Tokens, refer to the Salesforce documentation: OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration, Enable JSON Web Token (JWT)-Based Access Tokens, and JWT-Based Access Tokens.

Importante:

Salesforce has deprecated the legacy Connected App model. All new applications must be created as External Client Apps. Existing Connected Apps continue to function, but Salesforce recommends migrating to External Client Apps. The steps below reflect the new External Client App workflow.

This method uses a private application that you create and manage in Salesforce, giving you full control over OAuth scopes and security policies. Follow these steps:

Step A: Create an External Client App in Salesforce

  1. Sign in to your Salesforce account and go to Setup.
  2. Navigate to Apps > External Client Apps > External Client App Manager.
  3. Click New External Client App.
  4. Rellene los campos obligatorios:
    • External Client App Name: A descriptive name (e.g., "UiPath Integration").
    • API Name: Must contain only underscores and alphanumeric characters, be unique, start with a letter, and not end with an underscore or contain consecutive underscores.
    • Contact Email: The email address for the app owner.
    • Distribution State: Select Local (for single-org use) or Packaged.
  5. Expand the API (Enable OAuth Settings) section and check Enable OAuth.
  6. In the Callback URL field, enter the UiPath OAuth callback URL provided in your Orchestrator connection setup screen.
  7. Select the required OAuth Scopes and move them to Selected OAuth Scopes. At minimum, include: Access the identity URL service, Manage user data via APIs, and Perform requests at any time.
  8. Under Flow Enablement, select Enable Authorization Code and Credentials Flow.
  9. Under Security, check both Require secret for Web Server Flow and Require secret for Refresh Token Flow.
  10. Haz clic en Crear.

Step A.1: Configure policies (required)

After creating the External Client App, you must configure its policies:

  1. Go to Setup > Connected Apps > Manage Connected Apps.
  2. Find your External Client App and click Edit Policies.
  3. Set the following:
    • Permitted Users: "All users may self-authorize"
    • IP Relaxation: "Relax IP restrictions"
    • Refresh Token Policy: "Refresh token is valid until revoked"
  4. Haz clic en Guardar.

Step B: Retrieve the Client ID and Client Secret

  1. In the External Client App, go to the Settings tab.
  2. Expand OAuth Settings.
  3. Click Consumer Key and Secret.
  4. Enter your credentials (and OTP if prompted).
  5. Copy the Consumer Key (this is your Client ID) and Consumer Secret (this is your Client Secret). Store these securely.
Nota:

After creating or modifying an External Client App, Salesforce can take up to 10 minutes to propagate the changes. Wait before attempting to connect.

Step C: Connect in UiPath Orchestrator

  1. In Orchestrator, go to your folder > Connections > Add connection > Salesforce.
  2. Select the environment (Production or Sandbox).
  3. Select Bring Your Own OAuth 2.0 App as the authentication method.
  4. Enter the Client ID and Client Secret from Step B.
  5. Select Connect.
  6. Complete the Salesforce login and authorize the app.

For more details, refer to the Salesforce documentation: Configure the External Client App OAuth Settings and Enable OAuth Settings for API Integration.

Token expiration and refresh

OAuth tokens may expire after a set amount of time depending on your Salesforce configuration. To prevent unexpected disconnections in production workflows:

  • Set the Refresh Token Policy to "Refresh token is valid until revoked" in your Salesforce Connected App or External Client App settings.
  • Ensure the "Perform requests at any time" scope is granted. This scope enables offline refresh and is not included in the "full access" scope — it must be configured independently.

Refer to the Salesforce guides: Manage OAuth Access Policies for a Connected App and OAuth Tokens and Scopes for detailed configuration steps.

Sandbox setup

For setting up a Sandbox account, follow the steps described in the Salesforce official documentation: Sandbox Setup Considerations.

Salesforce sandboxes are isolated from your production organization. Operations performed in a sandbox do not affect production data, and vice versa. Sandboxes are nearly identical to production, but some differences exist — refer to the Salesforce documentation for details.

Consejo:

When first starting to use UiPath with Salesforce, we recommend testing on a sandbox account or with non-essential data. This prevents any loss of crucial data, especially since actions performed through automations may not be easily undone.

Permisos

Salesforce connections in UiPath inherit the permissions of the account used for authentication. Below is a comprehensive guide to the permissions required.

Required OAuth scopes (public UiPath app)

When creating a connection through the public UiPath application, the connector requests the following permissions:

Permission / ScopePropósito
Acceder al servicio de URL de identidadRetrieve user identity information
Gestionar datos de usuario a través de APIRead and write Salesforce records via API
Gestionar datos de usuario a través de navegadores webBrowser-based data access
Acceder a los recursos de la API REST de ConnectChatter and Connect API access
Acceder a las aplicaciones de VisualforceInteract with Visualforce pages
Acceder a identificadores únicos de usuarioUnique user ID access for mapping
Acceder a permisos personalizadosRead custom permission assignments
Acceder a los recursos de la API REST de análisisReports and dashboards via API
Acceder a los recursos de geodatos de gráficos de la API de REST de análisisGeo-data in analytics
Administrar conexiones de hubHub connection management
Administrar los servicios de PardotPardot marketing automation access
Acceder a aplicaciones LightningLightning Experience access
Acceder a recursos de contenidoContent library access
Gestionar los datos de la API de ingestión de Salesforce CDPCDP data ingestion
Gestionar los datos del perfil de Salesforce CDPCDP profile management
Realizar consultas ANSI SQL en datos de Salesforce CDPCDP data querying
Acceder a los servicios de chatbotEinstein Bot services
Realizar solicitudes en cualquier momentoOffline refresh token access
Realizar la segmentación de los datos de Salesforce CDPCDP segmentation

API enabled permission

You must have the API Enabled permission in Salesforce. To configure: go to Setup > Administration > Users > Profiles, select the relevant profile, and ensure API Enabled is checked under Administrative Permissions.

Standard and custom object permissions

We recommend that the connected user's account has permissions to read, write, edit, delete, view all, and modify all for the standard or custom objects your automations interact with. To configure:

  • Go to Setup > Administration > Users > Profiles (or Permission Sets).
  • Locate the relevant standard or custom objects and assign the required permissions.
  • Object-level security is the broadest way to control data access. It configures a user's ability to view, create, edit, or delete records of a specific object type (e.g., Leads, Opportunities). If an object is hidden from the integration user, it will not appear in UiPath.
Nota:

If expected Salesforce objects are not appearing in UiPath, check with your Salesforce admin to confirm that the integration user has access to all required objects.

Field-level security

Field-level security controls the visibility of individual fields within objects, including in related lists, list views, reports, and search results. It also determines whether users can view or edit field values. This allows you to protect sensitive data without hiding entire objects.

Configure field-level security via profiles or permission sets in Salesforce. If expected fields are not appearing in UiPath, check with your Salesforce admin to confirm the integration user has access to the required fields.

Profiles and permission sets

User permissions and access settings control what users can do in your Salesforce organization:

  • Profiles: Define the baseline permissions for a group of users. Each user is assigned one profile. Use profiles to assign the minimum required permissions.
  • Permission Sets: Add additional permissions on top of a profile. A user can have multiple permission sets. Use these to layer extra access as needed for integrations.

Solución de problemas

Error / SymptomResolución
OAUTH_APPROVAL_ERROR_GENERIC

Salesforce is blocking the UiPath app because it is not installed. This applies to the public UiPath Connected App only (not BYOA External Client Apps, which are secure-by-default and exempt from this restriction). To resolve:

  1. Install the app: A Salesforce administrator must go to Setup > Connected Apps OAuth Usage, locate the UiPath connector, and click Install. Once installed, configure the OAuth policies as needed.
  2. Assign bypass permissions: A Salesforce admin can assign Approve Uninstalled Connected Apps (available when API Access Control is not enabled) or Use Any API Client (works when API Access Control is enabled).
invalid_client_id / "client identifier invalid"

The Consumer Key (Client ID) is not recognized. Common causes:

  • Propagation delay — after creating or modifying an External Client App, wait up to 10 minutes for Salesforce to propagate changes.
  • Wrong Consumer Key — re-copy it from your External Client App Settings tab > OAuth Settings > Consumer Key and Secret.
  • Sandbox/production mismatch — ensure the environment selected in UiPath matches where the app was created (Sandbox uses test.salesforce.com, Production uses login.salesforce.com).
missing required code challenge

PKCE (Proof Key for Code Exchange) is enforced. Disable it in two places:

  1. Org level: Setup > Identity > OAuth and OpenID Connect Settings — toggle off "Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows."
  2. App level: In the External Client App's OAuth settings, uncheck the PKCE requirement.

The org-level setting overrides the app-level setting — both must be off. After disabling, wait a few minutes and clear your browser cache before retrying.

Failed to exchange OAuth code for token

The authorization code was issued but the token exchange failed. Common causes for External Client Apps:

  • Callback URL mismatch — verify the URL in your External Client App exactly matches what UiPath sends (check http vs https, trailing slashes, case).
  • Incorrect Client Secret — re-copy from Settings > OAuth Settings > Consumer Key and Secret.
  • Policies not configured — go to Setup > Connected Apps > Manage Connected Apps, find the app, click Edit Policies, and set Permitted Users to "All users may self-authorize," IP Relaxation to "Relax IP restrictions," and Refresh Token Policy to "Refresh token is valid until revoked."
  • Token limit — Salesforce allows max 5 concurrent tokens per user per app; revoke old tokens via Setup > Security > Session Management.
Connection disconnects unexpectedlyThe refresh token may have expired. Set the Refresh Token Policy to "Refresh token is valid until revoked" and ensure the "Perform requests at any time" scope is granted. See the Token expiration and refresh section.
Objects or fields missing in UiPathObject-level or field-level security settings are preventing visibility. Check with your Salesforce admin to confirm the integration user's profile has read/write access to the required objects and fields.
API Enabled error / insufficient privilegesThe connected user's profile does not have the API Enabled permission. Go to Setup > Profiles, select the profile, and enable it under Administrative Permissions.
MFA prompt during connectionYour org requires multi-factor authentication. Use an authenticator app to complete the verification step. For automated (unattended) scenarios, consider using JWT bearer authentication which does not require interactive MFA.
Custom domain not recognizedClick "Use Custom Domain" on the Salesforce login screen, enter the full custom domain URL (e.g., yourcompany.my.salesforce.com), and click Continue before entering credentials.

Mejores prácticas

  • Use a dedicated integration user. Create a dedicated Salesforce user for UiPath integrations rather than using personal accounts. This ensures consistent permissions, simplifies auditing, and avoids disruption when individual users change roles.
  • Test in a sandbox first. Always test new connections and automations in a Salesforce sandbox environment before deploying to production. Actions performed through UiPath cannot always be undone.
  • Apply least-privilege permissions. Grant only the object and field access your automations actually need. Use profiles for baseline access and permission sets for additional scopes.
  • Configure token refresh policies. Set the refresh token policy to "valid until revoked" and grant the "Perform requests at any time" scope to avoid unexpected disconnections.
  • Use meaningful connection names. When creating connections in Orchestrator, use descriptive names that indicate the environment and purpose (e.g., "Salesforce-Production-OrderSync") to make management easier.
  • Plan for Salesforce's External Client App migration. Salesforce has deprecated the legacy Connected App model. All new apps should be created as External Client Apps. Plan to migrate existing Connected Apps per Salesforce's guidance.

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado