Microsoft OneDrive + Microsoft Teams

Connect Microsoft OneDrive and Microsoft Teams to Automate Your Document Workflows

Keep your files organized and your team in the loop by integrating OneDrive storage with Teams — automatically.

Why integrate Microsoft OneDrive and Microsoft Teams?

Microsoft OneDrive and Microsoft Teams are two of the most widely used tools in the modern workplace, yet keeping them in sync manually creates friction, delays, and version control headaches. When files uploaded to OneDrive automatically trigger notifications, shared links, or channel updates in Teams, your team stays informed without lifting a finger. Integrating these two Microsoft 365 tools through tray.ai gives you a document-centric collaboration setup that scales with your organization.

Automate & integrate Microsoft OneDrive & Microsoft Teams

Use case

Instant Team Notifications for New OneDrive File Uploads

Whenever a new file lands in a designated OneDrive folder, tray.ai automatically posts a message to a specified Microsoft Teams channel with the file name, uploader, and a direct link. Team members don't need to monitor shared folders or hunt down document links in chat threads. Project teams stay informed in real time without switching between apps.

Use case

Document Approval Workflows Triggered from OneDrive

When a new document lands in a designated OneDrive review folder, tray.ai automatically sends an approval request card to a Teams channel or specific user, letting reviewers approve or reject directly from Teams. No separate approval tool needed, no manual follow-up emails. Decisions get captured and logged, so audit trails stay clean and work keeps moving.

Use case

Automated Teams Alerts for OneDrive File Modifications

When a shared OneDrive file is edited or updated, tray.ai detects the change and sends a notification to the relevant Teams channel, including who made the change and a timestamp. Collaborators stay aware of evolving documents without manually checking version histories. This is especially useful for contracts, reports, and presentations that multiple stakeholders depend on.

Use case

Onboarding Document Delivery via Teams When Files Are Shared in OneDrive

When HR or operations teams upload onboarding documents to a specific OneDrive folder, tray.ai automatically sends a personalized Teams message to new employees with links to all relevant files. This replaces ad hoc email chains and scattered file shares with a consistent, repeatable onboarding process. New hires get everything they need on day one, delivered directly in the platform they'll use every day.

Use case

Project Folder Creation in OneDrive Triggered by New Teams Channels

When a new project channel is created in Microsoft Teams, tray.ai automatically provisions a corresponding folder structure in OneDrive with predefined subfolders for deliverables, assets, and meeting notes. Every project starts with the same file organization, no manual setup required. Teams channels and folder hierarchies stay aligned from day one.

Use case

Weekly File Activity Summaries Posted to Teams Channels

tray.ai can pull OneDrive file activity — new uploads, edits, and deletions — across a folder or drive on a schedule and post a digest to a Teams channel each week. Team leads and managers get a clear picture of document activity without logging into OneDrive. It replaces informal status updates with a reliable, automated reporting cadence.

Use case

Compliance and Sensitive File Alerts Sent to Teams

When files containing sensitive keywords or flagged naming conventions are uploaded to OneDrive, tray.ai immediately notifies a compliance or security Teams channel with the file details and uploading user's information. It's a lightweight early-warning system for data governance that doesn't require a full DLP solution. Security and compliance teams can respond faster to potential policy violations.

Get started with Microsoft OneDrive & Microsoft Teams integration today

Microsoft OneDrive & Microsoft Teams Challenges

What challenges are there when working with Microsoft OneDrive & Microsoft Teams and how will using Tray.ai help?

Challenge

Handling Large File Volumes Without Overwhelming Teams Channels

In active organizations, OneDrive folders can receive dozens or hundreds of file uploads per day. If every event triggers a message, Teams channels fill up fast and people start ignoring the noise.

How Tray.ai Can Help:

tray.ai has built-in filtering, batching, and conditional logic so you can define exactly which file types, folders, or users should trigger a Teams notification. You can also use digest-style scheduling to consolidate high-volume events into a single summary post instead of a flood of individual messages.

Challenge

Authenticating and Maintaining Secure Connections Across Microsoft 365 Tenants

Enterprises with multiple Microsoft 365 tenants or strict conditional access policies often struggle to maintain stable OAuth connections between OneDrive and Teams integrations, especially when tokens expire or admin consent changes.

How Tray.ai Can Help:

tray.ai handles OAuth token refresh automatically for both Microsoft OneDrive and Teams connectors, and supports tenant-level authentication configuration so credentials are securely stored, refreshed without manual intervention, and scoped correctly to your organizational policies.

Challenge

Mapping Dynamic Folder Structures to the Right Teams Channels

Organizations often have complex, evolving OneDrive folder hierarchies that don't map cleanly to a static list of Teams channels, making it hard to route file notifications to the right audience without constant manual reconfiguration.

How Tray.ai Can Help:

tray.ai's data mapping and lookup capabilities let you dynamically resolve folder names or metadata to the correct Teams channel ID at runtime, using lookup tables or calls to external data sources. Routing logic stays accurate even as your folder structures and team compositions change.

Challenge

Triggering Workflows Only for Relevant File Types or Naming Conventions

Not every file in OneDrive warrants a Teams notification. Alerts for temporary files, drafts, or system-generated documents create noise and make the automation less useful over time.

How Tray.ai Can Help:

tray.ai's workflow logic supports conditional branching and filter steps that evaluate file extensions, naming patterns, folder paths, and MIME types before deciding whether to proceed with a Teams action. Only meaningful file events drive downstream notifications or processes.

Challenge

Keeping Teams Messages Actionable and Contextually Rich

A Teams notification that just says a file was uploaded isn't very useful. Without context — which project it belongs to, who requested it, a direct link — recipients still have to do their own research before they can do anything with it.

How Tray.ai Can Help:

tray.ai supports Teams adaptive card formatting and data enrichment steps that pull additional context from connected systems — such as CRM records, project management tools, or HR platforms — before composing the Teams message. Every notification contains what the recipient needs to act immediately.

Start using our pre-built Microsoft OneDrive & Microsoft Teams templates today

Start from scratch or use one of our pre-built Microsoft OneDrive & Microsoft Teams templates to quickly solve your most common use cases.

Microsoft OneDrive & Microsoft Teams Templates

Find pre-built Microsoft OneDrive & Microsoft Teams solutions for common use cases

Browse all templates

Template

Post a Teams Message When a New File Is Uploaded to OneDrive

This template monitors a specified OneDrive folder for new file uploads and automatically posts a formatted notification to a designated Microsoft Teams channel, including the file name, uploader, upload time, and a direct link to the file.

Steps:

  • Trigger: Detect a new file upload event in a specified OneDrive folder
  • Transform: Extract file metadata including name, owner, timestamp, and shareable link
  • Action: Post a formatted message card to the designated Microsoft Teams channel

Connectors Used: Microsoft OneDrive, Microsoft Teams

Template

Send a Teams Approval Request When a Document Enters an OneDrive Review Folder

When a document is placed into a designated review folder in OneDrive, this template sends an interactive approval card to a specific Teams user or channel. The reviewer can approve or reject the document from within Teams, and the outcome is logged back to a connected system or the file metadata in OneDrive.

Steps:

  • Trigger: Detect a new file added to the OneDrive review folder
  • Action: Send an adaptive approval card to the designated Teams approver or channel
  • Logic: Branch based on approval or rejection response and update the file status accordingly

Connectors Used: Microsoft OneDrive, Microsoft Teams

Template

Create a OneDrive Project Folder Structure When a New Teams Channel Is Created

This template listens for the creation of a new channel in Microsoft Teams and automatically provisions a structured folder hierarchy in OneDrive, organized with subfolders for common project needs such as deliverables, assets, and meeting notes.

Steps:

  • Trigger: Detect a new channel creation event in Microsoft Teams
  • Transform: Extract channel name and associated team metadata
  • Action: Create a parent project folder and predefined subfolders in the designated OneDrive location

Connectors Used: Microsoft Teams, Microsoft OneDrive

Template

Notify a Teams Channel When a Shared OneDrive File Is Modified

This template tracks changes to files within a shared OneDrive folder and sends a Teams channel notification whenever a modification is detected, including who edited the file, which file was changed, and a direct link for quick access.

Steps:

  • Trigger: Poll OneDrive for file modification events within a specified folder on a defined schedule
  • Transform: Parse modification details including editor identity, file name, and timestamp
  • Action: Post a change notification to the relevant Microsoft Teams channel

Connectors Used: Microsoft OneDrive, Microsoft Teams

Template

Deliver Onboarding Documents via Teams When Files Are Added to an OneDrive Folder

When onboarding documents are uploaded to a designated OneDrive HR folder, this template sends a personalized direct message in Microsoft Teams to the new employee with links to all relevant files, a welcome message, and next-step instructions.

Steps:

  • Trigger: Detect new files uploaded to the OneDrive onboarding folder
  • Transform: Identify the target employee and compile document links from OneDrive metadata
  • Action: Send a personalized Teams direct message with file links and onboarding instructions

Connectors Used: Microsoft OneDrive, Microsoft Teams

Template

Weekly OneDrive Activity Digest Posted to a Microsoft Teams Channel

On a scheduled weekly basis, this template queries OneDrive for all file activity within a defined folder or shared drive, aggregates the results into a structured summary, and posts the digest to a specified Teams channel.

Steps:

  • Trigger: Scheduled weekly timer initiates the workflow
  • Action: Query OneDrive API for file activity events over the past seven days within the target folder
  • Action: Format and post a structured activity digest to the designated Microsoft Teams channel

Connectors Used: Microsoft OneDrive, Microsoft Teams