Overview
Enable your agents to access and manage SharePoint sites, lists, and document libraries. Retrieve site information, manage list items, upload and organize files, and streamline your SharePoint workflows with AI-powered automation.Prerequisites
Before using the Microsoft SharePoint integration, ensure you have:- A CrewAI AMP account with an active subscription
- A Microsoft 365 account with SharePoint access
- Connected your Microsoft account through the Integrations page
Setting Up Microsoft SharePoint Integration
1. Connect Your Microsoft Account
- Navigate to CrewAI AMP Integrations
- Find Microsoft SharePoint in the Authentication Integrations section
- Click Connect and complete the OAuth flow
- Grant the necessary permissions for SharePoint sites and content access
- Copy your Enterprise Token from Integration Settings
2. Install Required Package
Available Actions
microsoft_sharepoint/get_sites
microsoft_sharepoint/get_sites
microsoft_sharepoint/get_site
microsoft_sharepoint/get_site
microsoft_sharepoint/get_site_lists
microsoft_sharepoint/get_site_lists
microsoft_sharepoint/get_list
microsoft_sharepoint/get_list
microsoft_sharepoint/get_list_items
microsoft_sharepoint/get_list_items
microsoft_sharepoint/create_list_item
microsoft_sharepoint/create_list_item
microsoft_sharepoint/update_list_item
microsoft_sharepoint/update_list_item
microsoft_sharepoint/delete_list_item
microsoft_sharepoint/delete_list_item
microsoft_sharepoint/upload_file_to_library
microsoft_sharepoint/upload_file_to_library
microsoft_sharepoint/get_drive_items
microsoft_sharepoint/get_drive_items
microsoft_sharepoint/delete_drive_item
microsoft_sharepoint/delete_drive_item
Usage Examples
Basic SharePoint Agent Setup
List Management and Data Operations
Document Library Management
Site Administration and Analysis
Automated Content Workflows
Data Integration and Reporting
Troubleshooting
Common Issues
Permission Errors- Ensure your Microsoft account has appropriate permissions for SharePoint sites
- Verify that the OAuth connection includes required scopes (Sites.Read.All, Sites.ReadWrite.All)
- Check that you have access to the specific sites and lists you’re trying to access
- Verify that site IDs and list IDs are correct and properly formatted
- Ensure that sites and lists exist and are accessible to your account
- Use the get_sites and get_site_lists actions to discover valid IDs
- Ensure field names match exactly with the SharePoint list schema
- Verify that required fields are included when creating or updating list items
- Check that field types and values are compatible with the list column definitions
- Ensure file paths are properly formatted and don’t contain invalid characters
- Verify that you have write permissions to the target document library
- Check that file content is properly encoded for upload
- Use proper OData syntax for filter, select, expand, and orderby parameters
- Verify that property names used in queries exist in the target resources
- Test simple queries before building complex filter expressions
- Use top and skip parameters appropriately for large result sets
- Implement proper pagination for lists with many items
- Consider using select parameters to return only needed properties
- Ensure you have proper permissions for document library operations
- Verify that drive item IDs are correct when deleting files or folders
- Check that file paths don’t conflict with existing content
Getting Help
Need Help?
Contact our support team for assistance with Microsoft SharePoint integration setup or troubleshooting.