January 30, 2023

Outlook To Teams Group Chat (PowerTools/AutoHotkey)

In my last presentation for the Teams Community Day, Dennis Weber wished to have the feature implemented in the PowerTools to convert an Outlook Email or Meeting to a Microsoft Teams Group Chat with the possibility to select To or CC/Optional Addressees conveniently.
Previously one had to merge both To and CC fields manually.
This is now implemented.

Usage

This works from Outlook when an Item is selected either in the Detailed view or opened and either for an Email, Meeting in the Calendar view or Meeting request in the Inbox.

You can run the feature either from the Outlook Shortcuts PowerTool using for example the Win+O menu, or from the PeopleConnector menu or from the TeamsShortcuts System Tray Icon menu "Open Chat" or from the Teamsy Launcher using the keyword "2c" (for To Chat)

You will be prompted which fields you want (not) to use:

N.B.: Only internal or affiliated emails can be added to the Group chat.
Checking for your own email is irrelevant.

Implementation

The implementation makes use of the Outlook ComObject in AutoHotkey.

To get the List of Emails from the Outlook Item, the key part is implemented in the function Lib/Outlook.ahk->Outlook_Item2Emails

Files are also extracted in this Gist

Once the Emails are extracted, this follows the same approach as described in this related post 
Teams Create Group Chat/ Open Chat to build the deep link to create the group chat.

See also

Teams Create Group Chat/ Open Chat

No comments:

Post a Comment