# Salesforce Building Blocks

The **Salesforce** building blocks are designed to automate key actions within **Salesforce applications**, including login, field input, and user interactions.

## Login Block
The [**Login block**](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/login) is used to launch a Salesforce browser session and authenticate the user with provided credentials. This block is added directly in Flow and supports session reuse if a valid session is detected.

## Click Element Block
The [Click Element](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/click-element) block is used to simulate a user click on interactive elements such as buttons, tabs, or icons within the Salesforce interface.

## Set Element Text Block
The [Set Element Text](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-element-text) block is used to enter values into standard text boxes—such as Name, Email, or any mandatory input field in Salesforce forms.

## Set Element Dropdown Block
The [**Set Element Dropdown**](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-dropdown) block is used to choose an option from a dropdown menu. It supports both typed input and selection from listed values.

## Set Element Checkbox Block
The [Set Element Checkbox](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-element-checkbox) block is used to check or uncheck a box, commonly used for enabling preferences, accepting terms, or activating features.

## Set Element Radio Button Block
The [Set Element Radio Button](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-element-radio-button) block is used to select an option from a group of mutually exclusive choices within a form, such as selecting a user role or preference.

## Set Toggle Button Block
The [Set Toggle Button](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-toggle-button) block is used to turn toggle buttons on or off, enabling or disabling specific settings in the Salesforce UI.

## Set Element Combo Box Block
The [Set Element Combo Box](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-element-combo-box) block is used to select one or more options from a multi-select dropdown field. It supports both manual typing and multiple value selection.

## Select Row Block
The [Select Row](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/select-row) block is used to select a specific row inside a Salesforce grid or table, allowing row-level interactions such as clicks, edits, or validations.

## Set Panel State Block
The [Set Panel State](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/set-panel-state) block is used to expand or collapse panels, menus, or sections within the Salesforce interface.

## Get and Validate Block
The [**Get and Validate**](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/get-and-validate) block is used to verify element conditions or retrieve values from Salesforce fields for use in automation flows.

## Close Browser Block
The [Close Browser](https://docs.leapwork.com/leapwork-flow/latest/building-blocks/salesforce/close-browser) block is used to close any browser windows opened during a Salesforce application automation flow.
