Microsoft Graph (Sharepoint) Connection


The SharePoint Connection feature allows Leapwork administrators to configure and authenticate a connection to a SharePoint site. This integration allows you to automatically read from and write to Excel files stored in SharePoint, directly within your automation workflows.

Note: This feature will be available starting from Release 2025.1.

Add Connection

To add a connection:

  1. Click the Add button and the following pop-up appears:

image-20260122-092126.png

In the Add Connection pop-up window:

  1. Enter the title in the Title field. It should be unique.

  2. Enter the description in the Description field.

  3. From the Type drop-down, select the Microsoft Graph (SharePoint) option:

image-20260122-092212.png

The following new fields appear:

image-20260122-092247.png
  • Enter the tenant in the Tenant field. 

  • Enter the client ID in the Client ID field. 
    Note: To obtain the Client ID, you must register the SharePoint application in Azure Active Directory (AAD). Refer to our Knowledge Base guide on app registration for step-by-step instructions.

  • Enter the client secret in the Password field.
    Note: To obtain the Password, you must register the SharePoint application in Azure Active Directory (AAD). Refer to our Knowledge Base guide on app registration for step-by-step instructions.

  1. Click the Test Connection button to validate the credentials. 

Leapwork will generate a temporary authentication token (valid for one hour).

The following events will happen based on connection status:
  • If the connection failed, an error message will be displayed.

image-20260122-092500.png
  • If the connection is successful, a confirmation message will be displayed.

image-20260122-092517.png

To modify or remove the connection, you can use the Edit or Delete buttons next to the Add button.

https://www.leapwork.com/hs-fs/hubfs/undefined-Oct-10-2022-01-43-28-36-PM.png?width=479&height=296&name=undefined-Oct-10-2022-01-43-28-36-PM.png

Once configured, this connection lets Leapwork automation read and write Excel files on the SharePoint site.