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:
query(TEXT, Required): Search for file contents/names, or paste a SharePoint URL to find a specific file, i.e. ‘quarterly revenue’, ‘https://contoso.sharepoint.com/sites/YourSite/Shared%20Documents/Subfolder/document.pdf’ or ”*” to list all files
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.
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 informationfolderId(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.
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:
folderWebUrl(TEXT, Required): Paste a SharePoint folder URL (e.g., https://contoso.sharepoint.com/sites/YourSite/Shared%20Documents/Subfolder)includeSubfolders(BOOLEAN, Optional): If enabled, recursively list files in subfolders and preserve relative paths.limit(NUMBER, Optional): Stop after this many files (automatic pagination).
Download file
sharepoint.download_file
Downloads a file from SharePoint
Requires Confirmation: No
Parameters:
parent(OBJECT, Required): Parent object containing drive/site informationitemId(ID, Required): The file ID (documentId from search results)
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
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 actionsiteUrl(TEXT, Optional): The full URL of the SharePoint site. For example: https://contoso.sharepoint.com/sites/marketingsitePath(TEXT, Optional): The server-relative path to the site. For example: /sites/marketing or /teams/engineering
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)
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
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 actionsmaxResults(TEXT, Optional): Maximum number of site pages to return. The action auto-paginates until this number is reached or no more data
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 actionspageId(TEXT, Required): The page id to retrieve. You can get this from the list_site_pages action or from get_site pages array
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
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 locatedlistId(ID, Required): The id of the SharePoint list. You can get this from the list_site_lists action
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 locatedlistId(ID, Required): The id of the SharePoint listproperties(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
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 locatedlistId(ID, Required): The id of the SharePoint list to queryfilter(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 namesproperties(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 returnedselect(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 returnedmaxResults(TEXT, Optional): Maximum number of list items to return. The action auto-paginates until this number is reached or no more data
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 locatedlistId(ID, Required): The id of the SharePoint listitemId(TEXT, Required): The id of the list item to retrieve
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 locatedlistId(ID, Required): The id of the SharePoint list
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 locatedlistId(ID, Required): The id of the SharePoint listcolumnId(TEXT, Required): The id of the column to retrieve. You can get this from the list_columns action
Upload file
sharepoint.upload_file
Uploads a file to a SharePoint folder
Requires Confirmation: Yes
Parameters:
file(FILE, Required): The file to upload to SharePointdriveId(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
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
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 createdparentFolderId(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’.
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 fileitemId(ID, Required): The file ID to get sensitivity labels for
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_drivessiteId(TEXT, Optional): The site id to get the default drive for. Use this if you want the primary document library of a site
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 usermaxResults(NUMBER, Optional): Maximum number of drives to return. The action auto-paginates until this number is reached. Defaults to 100
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 actionsfolderId(ID, Optional): Optional folder ID to list children from. If not provided, lists children from the drive rootmaxResults(NUMBER, Optional): Maximum number of items to return. The action auto-paginates until this number is reached. Defaults to 100
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 informationitemId(TEXT, Required): The unique identifier of the file you want to check access for in SharePoint
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 fileitemId(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.