Skip to main content

Overview

Microsoft SharePoint is a service that helps organizations share content. Through Langdock’s integration, you can access and manage SharePoint directly from your conversations.
Authentication: OAuth Category: Productivity & Collaboration Availability: All workspace plans

Available Actions

Search files

sharepoint.search_files
Searches files in SharePoint by file name or full-text search within document contents. Requires Confirmation: No Parameters: Output: Returns the operation result

Search SharePoint

sharepoint.search_sharepoint
Searches documents in SharePoint or retrieves a file by URL Requires Confirmation: No Parameters:
  • query (TEXT, Optional): Search term to find matching files in SharePoint, or paste a SharePoint URL to retrieve a specific file. Use ”*” to list all results.
Output: Returns the operation result

List files in folder

sharepoint.list_files_in_folder
Lists files in a SharePoint folder recursively, with optional search query to filter by filename. Filters out images, videos, and spreadsheets. Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object containing drive/site information
  • folderId (TEXT, Optional): Optional folder ID to list files from. If not provided, lists from root.
  • query (TEXT, Optional): Optional search query to filter files by name. Case-insensitive partial match.
Output: Returns the operation result

List files in SharePoint folder

sharepoint.list_files_in_sharepoint_folder
Lists files in a SharePoint folder with optional recursion over subfolders. Returns files only and preserves relative paths and depth. Requires Confirmation: No Parameters: Output: Returns the operation result

Download file

sharepoint.download_file
Downloads a file from SharePoint Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object containing drive/site information
  • itemId (ID, Required): The file ID (documentId from search results)
Output: Returns the operation result

Search sites

sharepoint.search_sites
Searches for SharePoint sites based on a query string Requires Confirmation: No Parameters:
  • query (TEXT, Required): The search query to find SharePoint sites. For example, search for site names like “Marketing”, “HR Department”, or ”*” to list all sites
Output: Returns the operation result

Get site

sharepoint.get_site
Gets properties and relationships for a SharePoint site by id, URL, or path Requires Confirmation: No Parameters:
  • siteId (ID, Optional): The SharePoint site id. Use this if you have the site id from another action
  • siteUrl (TEXT, Optional): The full URL of the SharePoint site. For example: https://contoso.sharepoint.com/sites/marketing
  • sitePath (TEXT, Optional): The server-relative path to the site. For example: /sites/marketing or /teams/engineering
Output: Returns the operation result

Get folder

sharepoint.get_folder
Resolves a SharePoint folder path to driveId and folderId for upload Requires Confirmation: No Parameters:
  • folderPath (TEXT, Required): SharePoint folder path (e.g., /sites/SiteName/Documents/FolderName)
Output: Returns the operation result

List subsites

sharepoint.list_subsites
Lists all subsites of a SharePoint site Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id to get subsites from. You can get this from the search_sites or get_site actions
Output: Returns the operation result

List site pages

sharepoint.list_site_pages
Lists all site pages in a SharePoint site Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the site pages are located. You can get this from the search_sites or get_site actions
  • maxResults (TEXT, Optional): Maximum number of site pages to return. The action auto-paginates until this number is reached or no more data
Output: Returns the operation result

Get page

sharepoint.get_page
Gets a SharePoint page with its full content structure including text, web parts, and layout. Only works with modern SharePoint pages. Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the page is located. You can get this from the search_sites or get_site actions
  • pageId (TEXT, Required): The page id to retrieve. You can get this from the list_site_pages action or from get_site pages array
Output: Returns the operation result

List site lists

sharepoint.list_site_lists
Lists all SharePoint lists in a site Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the lists are located. You can get this from the search_sites action
Output: Returns the operation result

Get list

sharepoint.get_list
Gets metadata for a specific SharePoint list Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the list is located
  • listId (ID, Required): The id of the SharePoint list. You can get this from the list_site_lists action
Output: Returns the operation result

List list items

sharepoint.list_list_items
Lists items from a SharePoint list with optional filtering Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the list is located
  • listId (ID, Required): The id of the SharePoint list
  • properties (TEXT, Optional): Optional comma-separated list of top-level properties to include in each item. Available properties: id, webUrl, createdDateTime, lastModifiedDateTime, createdBy, lastModifiedBy, fields, contentType. If not specified, all properties are returned. Examples: “fields” (only custom fields), “id,field…
  • select (TEXT, Optional): Optional comma-separated list of custom fields to return from the fields object. Only applies when fields property is included. Custom fields: Title, Age, HireDate, MiddleName, LastName, OfficeLocation, etc. If not specified, all custom fields are returned. Example: “Title,Age,HireDate”
  • maxResults (TEXT, Optional): Maximum number of list items to return. The action auto-paginates until this number is reached or no more data
Output: Returns the operation result

Query list items

sharepoint.query_list_items
Queries and filters items from a SharePoint list using OData filter expressions Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the list is located
  • listId (ID, Required): The id of the SharePoint list to query
  • filter (TEXT, Required): OData filter query to filter list items. Examples: “fields/Status eq ‘Active’”, “fields/Age gt 25”, “fields/Priority eq ‘High’ and fields/Status eq ‘Open’”. Use the list_columns action to see available field names
  • properties (TEXT, Optional): Optional comma-separated list of top-level properties to include in each item. Available properties: id, webUrl, createdDateTime, lastModifiedDateTime, createdBy, lastModifiedBy, fields, contentType. If not specified, all properties are returned
  • select (TEXT, Optional): Optional comma-separated list of custom fields to return from the fields object. Custom fields: Title, Age, HireDate, MiddleName, LastName, OfficeLocation, etc. If not specified, all custom fields are returned
  • maxResults (TEXT, Optional): Maximum number of list items to return. The action auto-paginates until this number is reached or no more data
Output: Returns the operation result

Get list item

sharepoint.get_list_item
Gets a specific item from a SharePoint list Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the list is located
  • listId (ID, Required): The id of the SharePoint list
  • itemId (TEXT, Required): The id of the list item to retrieve
Output: Returns the operation result

List columns

sharepoint.list_columns
Lists all column definitions in a SharePoint list Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the list is located
  • listId (ID, Required): The id of the SharePoint list
Output: Returns the operation result

Get column

sharepoint.get_column
Gets the definition of a specific column in a SharePoint list Requires Confirmation: No Parameters:
  • siteId (ID, Required): The SharePoint site id where the list is located
  • listId (ID, Required): The id of the SharePoint list
  • columnId (TEXT, Required): The id of the column to retrieve. You can get this from the list_columns action
Output: Returns the operation result

Upload file

sharepoint.upload_file
Uploads a file to a SharePoint folder Requires Confirmation: Yes Parameters:
  • file (FILE, Required): The file to upload to SharePoint
  • driveId (ID, Required): The SharePoint drive ID (from get_folder action)
  • folderId (ID, Optional): The SharePoint folder ID (from get_folder action). Leave empty for drive root.
  • fileName (TEXT, Optional): Optional custom name for the uploaded file
Output: Returns the operation result

List recent files

sharepoint.list_recent_files
Lists files recently accessed by the current user across all drives Requires Confirmation: No Parameters:
  • maxResults (NUMBER, Optional): Maximum number of recent files to return. Defaults to 50
Output: Returns the operation result

Create folder

sharepoint.create_folder
Creates a folder in a SharePoint drive. Supports nested folder paths (e.g., ‘folder1/folder2/folder3’). Requires Confirmation: Yes Parameters:
  • driveId (ID, Required): The SharePoint drive ID where the folder will be created
  • parentFolderId (ID, Optional): The parent folder ID. Leave empty to create in drive root.
  • folderPath (TEXT, Required): Name of the folder to create. Supports nested paths like ‘folder1/folder2/folder3’.
Output: Returns the operation result

Get profile

sharepoint.get_profile
Gets the profile information of the currently authenticated user Requires Confirmation: No Parameters: None Output: Returns the operation result

Get sensitivity label

sharepoint.get_sensitivity_label
Gets the sensitivity label(s) applied to a file. Returns label IDs and assignment method. Requires Confirmation: No Parameters:
  • driveId (ID, Required): The SharePoint drive ID containing the file
  • itemId (ID, Required): The file ID to get sensitivity labels for
Output: Returns the operation result

Get drive

sharepoint.get_drive
Gets information about a specific drive by id or the default drive for a site Requires Confirmation: No Parameters:
  • driveId (ID, Optional): The drive id. Use this if you have the drive id from another action like list_drives
  • siteId (TEXT, Optional): The site id to get the default drive for. Use this if you want the primary document library of a site
Output: Returns the operation result

List drives

sharepoint.list_drives
Lists all drives in a site or drives accessible by the current user Requires Confirmation: No Parameters:
  • siteId (TEXT, Optional): Optional site id to list drives for. If not provided, lists drives accessible by the current user
  • maxResults (NUMBER, Optional): Maximum number of drives to return. The action auto-paginates until this number is reached. Defaults to 100
Output: Returns the operation result

List drive children

sharepoint.list_drive_children
Lists files and folders in a drive at the root or in a specific folder. Helps agents navigate the drive structure Requires Confirmation: No Parameters:
  • driveId (ID, Required): The drive id to list children from. You can get this from list_drives or get_drive actions
  • folderId (ID, Optional): Optional folder ID to list children from. If not provided, lists children from the drive root
  • maxResults (NUMBER, Optional): Maximum number of items to return. The action auto-paginates until this number is reached. Defaults to 100
Output: Returns the operation result

Check file access

sharepoint.check_file_access
Checks if the current user has access to a specific file Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object containing drive/site information
  • itemId (TEXT, Required): The unique identifier of the file you want to check access for in SharePoint
Output: Returns the operation result

Get file

sharepoint.get_file
Gets / downloads a file from Sharepoint based on the item ID and attaches it to the chat, use this action to get the contents of a file. Requires Confirmation: No Parameters:
  • parent (OBJECT, Required): Parent object of the SharePoint file
  • itemId (ID, Required): Drive item ID of the file within the parent (drive/site/list). Use the documentId from search_files results. Do not use a URL.
Output: Returns the operation result