Skip to main content

Microsoft Teams

Send a message to Microsoft Teams when a team needs to know about file activity, an operational event, or a result reached during an Automation. Files.com sends an Adaptive Card to an incoming webhook URL. The Teams Workflow that owns the URL determines which chat or channel receives the message.

Microsoft Teams Configuration

The Workflows app in Microsoft Teams lets you create automated workflows that can receive HTTP requestsExternal LinkThis link leads to an external website and will open in a new tab through a webhook URL. When the webhook triggers, the workflow posts a message to your Teams channel, formatted as an Adaptive CardExternal LinkThis link leads to an external website and will open in a new tab. Adaptive Cards are JSON-based UI snippets that render interactive content in Teams chats and channels.

Open the Workflows app and create a new flow. Use the template for "Post to a channel when a webhook request is received." Add a name for your flow, then choose the Team and Channel where you want messages to be posted. You must be a member or owner of the channel to add a workflow to it.

Use a workflow that accepts requests from anyone with its URL. Copy the generated HTTPS URL and keep it private because anyone with the link can send requests to the workflow.

Required Permissions for Microsoft Teams Workflows

Some organizations restrict the use of Power Automate/Workflows. You may need to ask your IT department to allow the "Workflows" app.

Teams Workflow Owners and Co-Owners

Workflows are linked only to specific Teams users (referred to as owners of the workflow) and not to a Teams team or channel. Workflows can become orphan flowsExternal LinkThis link leads to an external website and will open in a new tab in the absence of an owner if no co-owners are assigned. To maintain continuity in the business process automated by the flow, admins can add one or more co-owners and grant them full control over the workflow.

Creating a Microsoft Teams Notification

Before you begin, configure a Microsoft Teams webhook URL for the channel where you want notifications to be sent.

Only users with administrator-level access to your site, Workspace or the folder can configure Microsoft Teams notifications for a folder.

Add the new Microsoft Teams notification in your Files.com site, supplying the complete URL generated by your Teams workflow. Use a URL that meets the webhook URL requirements.

You must choose which folder's activity will generate messages for the Teams Notification.

Activity in the folder and its subfolders is included by default; you can change this to only generate messages for actions occurring directly in the selected folder. On a Remote Server Mount, remote creations and deletions also generate matching notifications when Remote Metadata Index detects them in scans after its initial baseline.

By default, notifications are for any file or folder action (create, read, update, delete, move, or copy) within the configured folder. You can limit which actions generate notifications.

Choose Immediately or Subfolder summary in Message delivery. Immediate delivery is the default; summary mode also uses the Send after inactivity setting described under Subfolder Summaries. Changing delivery settings, selected actions, or folder scope discards pending summaries.

Event Channels

Create a Teams Webhook target with the HTTPS URL and select it in a subscription. Files.com formats the matched event as an Adaptive Card. For matching file activity, the target can summarize subfolder operations.

Automations v2

In Send Chat Message, choose Microsoft Teams and select a Token Secret containing the HTTPS URL. Files.com inserts the text you write for each item into the Adaptive Card.

Webhook URL Requirements

Use a URL that satisfies the outbound endpoint requirements. For a folder Notification, Files.com validates the destination before saving it. To confirm it posts to Teams, perform a selected file action in the configured folder and check the intended channel.

What Is Included in Microsoft Teams Notifications From Files.com

Files.com sends a Microsoft Teams message containing an Adaptive Card, in JSON format. With immediate delivery, the Adaptive Card describes the individual operation, like "Downloaded /Folder/example.pdf ", along with the associated user's name and the file's size.

Creation messages identify the resulting file or folder path, including files produced by TransformScript, document or image conversion, ad hoc GPG encryption or decryption, and ZIP extraction. Copy and move messages include both the original and resulting paths. Moving a file or folder to a new name within the same parent folder appears as a rename.

Messages about a folder rather than a file will not include the file size because folders do not have a file size. Operations performed using a site-wide API key are not associated with a user, so no username is included for those actions.

Timing of Microsoft Teams Messages from Files.com

Microsoft Teams Notifications default to immediate delivery, sending a separate message within seconds of Files.com recording each matching operation. You can instead choose Subfolder Summaries to combine matching file operations after a period of inactivity. For changes made directly on remote storage, notification timing follows detection by a Remote Metadata Index scan.

Subfolder Summaries

When a vendor or client uploads many files at once, a separate message for every operation can make the channel difficult to follow. Set Message delivery to Subfolder summary to receive counts grouped by the watched folder's first-level subfolders.

A message such as Uploads/ACME: 10 uploaded, 2 deleted includes activity in deeper folders such as Uploads/ACME/Photo ID. Files directly in Uploads contribute to a separate summary named Uploads.

The notification's folder scope and selected actions determine which file operations contribute. Folder operations are excluded. Counts represent operations rather than distinct files, so repeated operations on one file can contribute more than once.

Uploads and updates both count as uploaded. Summaries do not list filenames.

Set Send after inactivity to 15–300 seconds; the default is 60 seconds. Files.com sends each subfolder's summary after that period without new matching file activity; new matching activity restarts its inactivity period.

A shorter period alerts the team sooner but can split an upload into more messages. A longer period groups activity across longer pauses and delays the alert. Continuous activity is summarized after a maximum of 10 minutes of collection, with later activity starting another summary.

For an Inbox that separates submissions into subfolders, this keeps each submission folder's activity together in the channel. The inactivity period does not confirm that a submission is complete: a pause during uploading, activity beyond the 10-minute cap, or later uploads can produce additional summaries for the same submission.

Microsoft Teams Rate Limits

Teams Workflows apply Microsoft's webhook trigger and connector limitsExternal LinkThis link leads to an external website and will open in a new tab. The webhook trigger's limits depend on the workflow's Power Automate performance profile, and posting the message to Teams has separate connector limits.

A Microsoft Teams Notification tied to a busy folder can reach these limits with immediate delivery. Subfolder Summaries reduce message volume without listing every filename, but Microsoft's limits still apply, including when many subfolders have activity at once. Narrow the selected actions or folder scope when the channel does not need all of that activity.

Common Failure Patterns

If messages stop appearing in Teams, confirm the Workflow is enabled and can post to the intended channel.

Microsoft retired connector-based incoming webhooks. Use a URL from the Teams Workflows app for the Files.com connection. Microsoft Teams incoming webhooksExternal LinkThis link leads to an external website and will open in a new tab

Use curl to send a test message directly to the webhook URL. If the message appears, the Teams workflow accepted that request. This helps isolate problems with the workflow, but delivery from Files.com still depends on the settings of the Files.com sender and destination checks.

If the test message did not appear, check for configuration issues:

  • Check the Team channel. If the channel the workflow posts to was deleted or renamed, notification messages cannot be posted.
  • Make sure the workflow was not disabled within Microsoft Teams.
  • Verify that the Teams user who configured the workflow is still a member of the organization.
  • Ensure that the owner or co-owner of the Workflow has access to the channel.

If the test message appears in your Teams channel, check the settings on your Microsoft Teams Notification and make sure that the correct folder scope (just the folder vs the folder tree) and the list of selected file operations is correct. Check that the History listing for your folder shows activity that should have triggered the notification.

For Event Channels, check Delivery Attempts. For an Automation action, check the node in Run Detail.