January 11, 2023

Share To Teams

I share here a nice trick to share a Link to Teams.
It is implemented in the Teams PowerTools: Teams Shortcuts and Teamsy Launcher.

Idea description

It is not well known but there is a documented way to quickly share a Link to Teams. Documentation is available here: Share to Teams from web apps - Teams | Microsoft Learn

You can simply add this function to a custom chrome extension for example or any homepage/ web app or use the existing one by João Ferreira: Share to Teams - Chrome Web Store
Still, it would be nice to have this functionality without having to install any extra add-on and be able to run it from anywhere (not only the browser)
Here come the PowerTools!

Usage in Teams PowerTools

You can run the feature from the Teams Shortcuts Menu in the Tool System Tray Icon-> Share To Teams.
You can also run the feature from the Teamsy Launcher using the keyword 's2t'.

If you run the feature with the browser window opened it will be default catch the url from the current page.

You will have an inputbox to confirm the url you want to share.

AHK Implementation

Function is implemented in Lib/Teams.ahk-> Teams_ShareToTeams (function)

Extract as of now 2023-01-11:
Teams_ShareToTeams(sUrl:=""){
If (sUrl = "") && (Browser_WinActive()) {
    sUrl := Browser_GetActiveUrl()
}
InputBox, sUrl , Share To Teams, Enter Link to Share:, , 640, 125,,,,, %sUrl%
If ErrorLevel
    return
sUrl := "https://teams.microsoft.com/share?href=" + sUrl
Run, %sUrl%
} ; eofun

See also

Share to Teams from web apps - Teams | Microsoft Learn

Share to Teams - Chrome Web Store

Quick Share a link to Microsoft Teams | Thierry Dalon's Blog

PowerTools

Teams Shortcuts PowerTool

Teamsy Launcher PowerTool

No comments:

Post a Comment