Salesforce FAQ

How do I enable the Salesforce Fusion Recorder in Leapwork?

To enable the Salesforce Fusion Recorder:

  1. Navigate to:
    C:\Users\YourUsername\AppData\Local\Leapwork
    (Replace YourUsername with your Windows username.)

  2. Open the studio config file.

  3. Look for or add the following line:

    "EnableSalesforceFusion": true,
    
  4. Save the file and restart Leapwork Studio.

Note: Available from version 2025.2.0 onward.


What should I do if the recorded element strategy doesn’t work in Salesforce?

Sometimes, Leapwork is not able to generate a unique strategy when capturing elements in Salesforce, especially if there are repeated or similar elements on the page. In such cases, you may need to manually adjust the strategy to specify the correct occurrence of the element.

There are two ways to address this:

Option 1: Capture the element again with occurrence

  1. Click the web element (e.g., a field or button) and choose Clear fields.

    image-20250909-151659.png
  2. Right-click the same element again and select Capture new web element.

  3. Click Edit web element.

  4. In the strategy editor, locate the Use occurrence field and enter a value (e.g., 1, 2, 3...).

  5. Click Validate, then Save.

    image-20250909-151721.png

Option 2: Manually edit the existing strategy

  1. Click the web element in the flow (e.g., Edit Quote).

  2. Right-click and select Edit web element.

    image-20250909-151843.png
    image-20250909-151921.png
    image-20250909-151947.png


  3. In the strategy editor, adjust the selector manually.

  4. Add or edit the occurrence value.

  5. Click Validate, then Save.


How can I work with Salesforce tables in Leapwork?

To interact with Salesforce data in Leapwork, you need to connect via an ODBC driver and use the Database block. Once configured, you can perform SELECT, INSERT, UPDATE, and DELETE operations.

A. Prerequisites

  • Install a 64-bit ODBC driver for Salesforce (e.g., Devart).

  • Ensure you have valid Salesforce credentials (username + password).

  • Know the API name of any table or field you want to work with.

B. Configure ODBC for Salesforce

  1. Open the ODBC Data Sources (64-bit) application on your system.

  2. Click Add and select your Salesforce ODBC driver.

    image-20250909-153052.png
    image-20250909-153155.png


  3. Enter the required connection details:

    • Name is used in database block as "Connection" while accessing database from Leapwork.

    • Description (optional).

    • Salesforce server you want to connect with.

    • Username.

    • Password.

    • Click Test Connection to verify access.

      image-20250909-153254.png
  4. Click OK to save the configuration.

C. Create a Custom Table in Salesforce

  1. Log in to your Salesforce account.

  2. In the Quick Find bar, type Object Manager and open it.

    image-20250909-154240.png
  3. Click Create → Custom Object.

  4. Enter the Label, Plural Label, and Object Name (this last one becomes the API name).

    image-20250909-154305.png
  5. Scroll down and click Save.

  6. In the Quick Find bar, type Tabs and open Tabs settings.

  7. Click New under the Custom Object Tabs section.

    image-20250909-154407.png
  8. Select your custom object from the dropdown.

  9. Choose a Tab Style, then click Next, Next, and finally Save to finish the tab setup.

    image-20250909-154444.png
    image-20250909-154503.png


  10. Return to the Salesforce homepage.

  11. Click the App Launcher (grid icon) and select the app where your tab is available.

  12. Click More if needed, then find and open your new tab.

  13. By default, the tab will show an empty list. Change the view to All, then click New to add your first record.

    image-20250909-154551.png
  14. Fill in the fields and click Save, or use Save & New to enter more records.

    image-20250909-154650.png

D. Perform Database Operations in Leapwork

In Leapwork Studio, use the Database block to execute SQL queries:

  • SELECT – Read records. Some system fields may appear by default.

  • INSERT – Add new records. Use API field names in your SQL.

  • UPDATE – Modify existing data. Again, use API field names.

  • DELETE – Remove records using matching criteria.

Once your connection is set, you can fully automate data operations in your Salesforce environment.


How do I handle Salesforce email or phone validation during login?

In order to turn off Email & Phone validations in Salesforce account you need Set Trusted IP Ranges.

Trusted IP Ranges define a list of IP addresses from which users can log in without receiving a login challenge for verification of their identity, such as a code sent to their mobile phone.

You can "Set Trusted IP Ranges" in your Salesforce login using following steps:

  1. From Setup, enter Network Access in the Quick Find box, then select Network Access.

  2. Click New.

  3. Enter a valid IP address in the Start IP Address field and a higher IP address in the End IP Address field.

    The start and end addresses define the range of allowable IP addresses from which users can log in, including the start and end values (usually 0.0.0.0-255.255.255.255). If you want to allow logins from a single IP address, enter the same address in both fields.

  4. Optionally, enter a description for the range. For example, if you maintain multiple ranges, enter details about the part of your network that corresponds to this range.

  5. Click Save.


Why can’t Leapwork capture a screenshot of the Salesforce login page on mobile?

Some mobile apps, including Salesforce, apply security restrictions that block screenshots on sensitive screens like login pages. This prevents Leapwork from interacting with the login screen using Appium.

What does this mean?

  • The login process cannot be automated with Leapwork’s mobile blocks.

  • A manual login is required before automation can begin.

  • Once logged in, Leapwork can automate pages that don’t restrict screenshots.

This is a security policy enforced by the mobile platform or app, not a limitation of Leapwork. To work around this, start your mobile flows from a screen that is accessible post-login.