2913 - Truncates Teams messages and notifies - #246
Open
steves-mobilise wants to merge 1 commit into
Open
Conversation
rgwenter-mobi
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
For several Power Automate Flows there's a selection of failed runs due to size of messages being sent (they are sending the whole of the linting output).
The central action should handle this gracefully by truncating and warning about truncation.
Example of a workflow that failed when sending large messages: linting workflow
Changes proposed in this pull request
New Truncate oversized message step added to send-to-teams-channel action. This checks the message size is below 81920 bytes (80kb), which is less than the 100kb limit Microsoft impose upon Teams messages, with headroom for formatting etc. causing size increases.
If the message is <= this limit it is sent through in its entirety. However, if it exceeds this limit it is truncated and a warning is added to the Teams message which contains a link to the workflow run for further information.
Guidance to review
I have ran a successful test here. You will see the new functionality in action within the Truncate oversized message step.
Trello Card
Trello card
Checklist
Devopslabel