From the contributor
How to use this sample
Summary
Sometimes you might need a more specialised "Share to Teams" option - this one allows for sharing a short synopsis & URL!

View requirements
- Sample is applied to a calculated column type (formula
="")
| Column Name | Type | Notes |
|---|---|---|
| ShareMessage | Text | Limit to 200 characters |
| URL | Multiple lines of text | Link will only parse 1 parameter, any more will be assumed to be part of the request to Teams |
- Instead of the extra columns, you could hardcode the share url by replacing the
[$ShareMessage]and[$URL]content in the attached format
Sample
| Solution | Author(s) |
|---|---|
| generic-share-to-teams-with-message.json | Bianca W |
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | October 15, 2023 | Initial release |
Additional notes
This solution was originally designed to be part of a bigger view, and has been re-designed for sharing with the community.
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.