> ## Documentation Index
> Fetch the complete documentation index at: https://help.cloudtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesforce Actions

> Perform workflow actions connected to the Salesforce API.

> [!NOTE]
>
> Here is a basic setup guide for Salesforce API actions within workflow automations.

**User level**: Admin

***

## Salesforce Workflow Actions

### Authorization via OAuth

CloudTalk supports the bearer token authentication needed for Salesforce API requests. The OAuth authorization which was configured within your first integration instance with Salesforce will be used for all workflow automations involving Salesforce. This is why we only advise having **one integration instance with Salesforce** if you are planning to use Salesforce API actions.

#### For Workflows

1. **You don't need to include any keys or auth headers in new setups**. All you need is your endpoint, query strings, and request body.

2. **You will need to limit workflows to one Salesforce integration.** Only automations from the most recently created integration instance will run.

3. **For custom-built API requests, confirm necessary scopes**. Since the authorization method is the same one used in initial integration setup, scopes will be the same as scopes used in your Salesforce integration. Check that the target entity your request is trying to access is covered within these scopes.

### Workflow Automation Setup

1. To set up a new workflow from the [dashboard](https://dashboard.cloudtalk.io/), navigate to **Settings >** **Workflow Automations**.

2. Select **`+Add Workflow`** and name your workflow. **`Confirm`**.

   ![](https://mintcdn.com/cloudtalk/xe2f6HmqhdjOgyCe/images/help-center/articles/9394264/d4efef319ce5-screenshot-2024-05-30-at-16-21-23.png?fit=max\&auto=format\&n=xe2f6HmqhdjOgyCe\&q=85\&s=e1a5ebe475f0864310f76f1e2461fdbe)

3. Define a [trigger](https://help.cloudtalk.io/en/articles/5648924-triggers.md) **Object** and **Action**.

   ![](https://mintcdn.com/cloudtalk/xe2f6HmqhdjOgyCe/images/help-center/articles/9394264/e8c1c5854d91-screenshot-2024-05-30-at-16-21-52.png?fit=max\&auto=format\&n=xe2f6HmqhdjOgyCe\&q=85\&s=5f77ba66034500080230435d236bb0a1)

   *Example Trigger*

   1. **Optional:** Set up a [condition](https://help.cloudtalk.io/en/articles/5649346-conditions.md) statement so that your automation only triggers for calls which meet your defined criteria. To apply your trigger to all calls, delete the condition step.

4. For your **[Action](https://help.cloudtalk.io/en/articles/5649782-actions.md)**, select `API request`. Follow the Salesforce [Actions Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.api_action.meta/api_action/actions_intro_overview.htm) and the sections for *Action Objects* to get the values and method you will need to fill in your API request.

   ![](https://mintcdn.com/cloudtalk/xe2f6HmqhdjOgyCe/images/help-center/articles/9394264/76856260e665-screenshot-2024-05-30-at-16-34-54.png?fit=max\&auto=format\&n=xe2f6HmqhdjOgyCe\&q=85\&s=c83b5821be98b238c20bf2e0f3ec6c49)

   *Example-only API setup with a dynamic value*

   1. Use the right table for inputing dynamic values. Click into a field and select the value you want.

5. **`Confirm and continue`**.

6. Use the slider to set your workflow to active, and **`Save`** your changes.

   ![](https://mintcdn.com/cloudtalk/xe2f6HmqhdjOgyCe/images/help-center/articles/9394264/edab501d5597-screenshot-2024-05-30-at-16-36-38.png?fit=max\&auto=format\&n=xe2f6HmqhdjOgyCe\&q=85\&s=f673b36dbc5d6f8840e1b5d9afbec111)

***

*Need help or have a question?* Just reach out through our [Support portal](https://support.cloudtalk.io/hc/en-us/requests/new?ticket_form_id=26305535257884) — we’re here for you.


## Related topics

- [Integrations guide](https://help.cloudtalk.io/en/articles/10570091-integrations-guide.md)
- [Configuring Workflow Automations](https://help.cloudtalk.io/en/articles/5450779-configuring-workflow-automations.md)
- [Actions](https://help.cloudtalk.io/en/articles/5649782-actions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.