Teams - an adoption idea? Transfer your group chat emails to Teams with Power Automate

Published 04-26-2021 12:28 AM 1,334 Views
Frequent Visitor

Transfer your group chat emails to Teams with Power Automate

 

I recently covered this idea on my blog but it is a Cloud Flow that I make use of often so I thought I would share it with you all.  My organisation is well in to their Teams adoption journey and whilst a large proportion of users use Teams for their first port of call for a group chat, it still often surprises me when a conversation is struck up via Outlook Email and very quickly we get lost between reply to alls and reply to sender.  Could Power Automate help you move that conversation group or one to one to Teams with a mouse click before the conversation gets out of control?

 

The simplest way for me, to transfer the conversation from Outlook and trigger a flow, was to use “When an email is flagged” trigger. Therefore I can simply flag an email in Outlook and take the conversation onto Teams.

 

With the variables provided by the email trigger, I compose (by default) the to and from fields in order to get all mail recipients (albeit you may want to include the CC'd emails to) and simply replace the semi colon with a comma, this is needed for the final and only other step.

 

Using the “Post your own adaptive card as the Flow bot to a user” step, I am able to send an adaptive card notification in Teams to myself and provide a summary of the email I am transferring, from, subject and body preview and in my case the option to start a one to one chat with the sender or a group chat if there are more than one recipients of the email. This is done using the Deep Link feature of Teams.

 

I have supplied a copy/paste option at the end of my post that will allow you to replicate this in your personal PowerAutomate / Teams environment in a matter of seconds. 

 

**NOTE** make sure you update the TO field in the post adaptive card action as it’s currently set to youremail[at]yourdomain[dot]com.

 

So, what does the Cloud Flow look like?

 

DamoBird365_0-1619420006466.png

The cloud flow only has 2 actions

 

The flow simply consists of a compose action in order to structure the list of emails from the email trigger, above I don't include the cc'd emails.  You've therefore a couple options for the get group email compose action, do you want to include cc'd or not in the Group Chat Deep Link?  The below sample snippet expression includes the ccRecipients, but feel free to adjust as necessary.

 

replace(tolower(concat(triggerOutputs()?[‘body/toRecipients’], ‘;’, triggerOutputs()?[‘body/from’], ‘;’, triggerOutputs()?[‘body/ccRecipients’])), ‘;’, ‘,’)

 

The second and final step is an adaptive card built via adaptive cards designer.  It's a steep learning curve but Designer site gives you plenty of sample cards to experiment with and it is here that you need to include the deep links to your new Teams conversations which will automatically launch a teams conversation with these users.

 

The User Experience

 

My colleague Alex, sends me an email with a list of colleagues in the to field.  Before the conversation gets out of control, I simply flag the email and instigate a move to Teams Group Chat.

 

DamoBird365_1-1619420516989.png

 

Within a matter of seconds, basically as fast as your Flow is triggered, a Flow Bot message is received to my Teams application with the subject and summary email body including a link to both a one to one and group chat.  

 

DamoBird365_2-1619420664133.png

 

Clicking on that Group DM in Teams button results in an opening conversation line and conversation subject (in draft), all courtesy of the deep link.  Now it's time to get the conversation going.

 

DamoBird365_3-1619420755529.png

 

Want to try the solution quickly?

 

Did you know that you can copy and paste Cloud Flow actions between environments really easily?  Simply by creating a new Cloud Flow with the "When an email is flagged” trigger you can then copy the provided code below and paste it into your ClipBoard by clicking Next Step, selecting My ClipBoard and pasting with Ctrl + V.  The only field you need to change is the Adaptive Card Recipient which by default is set to youremail[at]yourdomain[dot]com.  Just make sure you set this to your own email address to receive the Adaptive Card.

 
 

HowToCopyPasteSolution.gif

{"id":"f616b2c7-1645-4360-aff5-1710-a2bfb6a1","brandColor":"#8C3900","connectionReferences":{"shared_office365":{"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_office365/connections/shared-office365-2c7a215d-616e-4cc2-9dab-9d05f14c21a5"}},"shared_teams_1":{"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_teams/connections/shared-teams-c32e6b36-e3dd-4ca6-806d-5969ba7e6dee"}}},"connectorDisplayName":"Control","icon":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDMyIDMyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KIDxwYXRoIGQ9Im0wIDBoMzJ2MzJoLTMyeiIgZmlsbD0iIzhDMzkwMCIvPg0KIDxwYXRoIGQ9Im04IDEwaDE2djEyaC0xNnptMTUgMTF2LTEwaC0xNHYxMHptLTItOHY2aC0xMHYtNnptLTEgNXYtNGgtOHY0eiIgZmlsbD0iI2ZmZiIvPg0KPC9zdmc+DQo=","isTrigger":false,"operationName":"DamoBird365_Transfer_Email_To_Teams","operationDefinition":{"type":"Scope","actions":{"Get_All_To_and_From_Emails":{"type":"Compose","inputs":"@replace(tolower(concat(triggerOutputs()?['body/toRecipients'], ';', triggerOutputs()?['body/from'])), ';', ',')","runAfter":{}},"Post_your_own_adaptive_card_as_the_Flow_bot_to_a_user":{"type":"OpenApiConnection","inputs":{"host":{"connectionName":"shared_teams_1","operationId":"PostUserAdaptiveCard","apiId":"/providers/Microsoft.PowerApps/apis/shared_teams"},"parameters":{"PostAdaptiveCardRequest/recipient/to":"youremail[at]yourdomain[dot]com;","PostAdaptiveCardRequest/messageBody":"{\n    \"type\": \"AdaptiveCard\",\n    \"body\": [\n        {\n            \"type\": \"TextBlock\",\n            \"size\": \"Medium\",\n            \"weight\": \"Bolder\",\n            \"text\": \"Transfer Email to Chat\",\n            \"wrap\": true\n        },\n        {\n            \"type\": \"ColumnSet\",\n            \"columns\": [\n                {\n                    \"type\": \"Column\",\n                    \"items\": [\n                        {\n                            \"type\": \"TextBlock\",\n                            \"weight\": \"Bolder\",\n                            \"text\": \"@{triggerOutputs()?['body/from']}\",\n                            \"wrap\": true\n                        },\n                        {\n                            \"type\": \"TextBlock\",\n                            \"spacing\": \"None\",\n                            \"text\": \"@{triggerOutputs()?['body/subject']}\",\n                            \"isSubtle\": true,\n                            \"wrap\": true\n                        }\n                    ],\n                    \"width\": \"stretch\"\n                }\n            ]\n        },\n        {\n            \"type\": \"TextBlock\",\n            \"text\": \"@{triggerOutputs()?['body/bodyPreview']}\",\n            \"wrap\": true\n        }\n    ],\n  \"actions\": [\n    {\n      \"type\": \"Action.OpenUrl\",\n      \"title\": \"Start Group DM in Teams\",\n      \"url\": \"https://teams.microsoft.com/l/chat/0/0?users=@{outputs('Get_All_To_and_From_Emails')}&topicName=@{triggerOutputs()?['body/subject']}&message=Hi, regarding your Email (@{triggerOutputs()?['body/subject']}). \"\n    },\n    {\n      \"type\": \"Action.OpenUrl\",\n      \"title\": \"Start 1:1 DM in Teams\",\n      \"url\": \"https://teams.microsoft.com/l/chat/0/0?users=@{triggerOutputs()?['body/from']}&topicName=@{triggerOutputs()?['body/subject']}&message=Hi, regarding your Email (@{triggerOutputs()?['body/subject']}). \"\n    },\n  ],\n    \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\n    \"version\": \"1.2\"\n}","PostAdaptiveCardRequest/messageTitle":"Transfer Email To Teams"},"authentication":"@parameters('$authentication')"},"runAfter":{"Get_All_To_and_From_Emails":["Succeeded"]}}},"runAfter":{},"description":"***Please make sure you update the TO: in the Adaptive Card***"}}

 

Summary

 

Get that internal conversation moved from traditional Email into modern Teams.  Not all conversation is better suited to Teams, I accept, but it's often far more productive to have the order of conversation in front of you, expecially if you have had a couple days off.  If a colleague has taken the initiative to shift a conversation into Teams, it will save the group a lot of effort having to sift through that email string and potentially allows you to work in real time seeing if someone is available/online, rather than wait for that next email to come in or maybe a couple of people reply to that email at the same time with a different opinion :facepalm:  I've enjoyed working with you email, but Teams messaging is my preferred internal conversation route these days if I can't start a call of course.

 

What trigger would suit you best?

Would you include To/From or CC'd members too in your Group Email?

Have you used Teams Deep Links before?

 

Check out my blog for more ideas or if you have an idea of your own but don't know where to start, give me a shout via the various platforms - DamoBird365

3 Comments
New Contributor

Thank you for sharing, what an awesome idea!

Frequent Visitor

I've recently done a video on this solution too - if you care to have a watch :stareyes: 

 

Video is here or watch below

 

 

Senior Member

I love it. tried it out, and works like a charm :smile:

%3CLINGO-SUB%20id%3D%22lingo-sub-2290219%22%20slang%3D%22en-US%22%3ETeams%20-%20an%20adoption%20idea%3F%20Transfer%20your%20group%20chat%20emails%20to%20Teams%20with%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290219%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22lia-align-center%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3ETransfer%20your%20group%20chat%20emails%20to%20Teams%20with%20Power%20Automate%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20recently%20covered%20this%20idea%20on%20%3CA%20href%3D%22https%3A%2F%2Fdamobird365.birdhoose.co.uk%2F2021%2F02%2F11%2Fan-adoption-idea-instantly-transfer-an-email-to-teams-chat-with-powerautomate%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emy%20blog%3C%2FA%3E%26nbsp%3Bbut%20it%20is%20a%20Cloud%20Flow%20that%20I%20make%20use%20of%20often%20so%20I%20thought%20I%20would%20share%20it%20with%20you%20all.%26nbsp%3B%20My%20organisation%20is%20well%20in%20to%20their%20Teams%20adoption%20journey%20and%20whilst%20a%20large%20proportion%20of%20users%20use%20Teams%20for%20their%20first%20port%20of%20call%20for%20a%20group%20chat%2C%20it%20still%20often%20surprises%20me%20when%20a%20conversation%20is%20struck%20up%20via%20Outlook%20Email%20and%20very%20quickly%20we%20get%20lost%20between%20reply%20to%20alls%20and%20reply%20to%20sender.%26nbsp%3B%20Could%20Power%20Automate%20help%20you%20move%20that%20conversation%20group%20or%20one%20to%20one%20to%20Teams%20with%20a%20mouse%20click%20before%20the%20conversation%20gets%20out%20of%20control%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20simplest%20way%20for%20me%2C%20to%20transfer%20the%20conversation%20from%20Outlook%20and%20trigger%20a%20flow%2C%20was%20to%20use%20%E2%80%9CWhen%20an%20email%20is%20flagged%E2%80%9D%20trigger.%20Therefore%20I%20can%20simply%20flag%20an%20email%20in%20Outlook%20and%20take%20the%20conversation%20onto%20Teams.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWith%20the%20variables%20provided%20by%20the%20email%20trigger%2C%20I%20compose%20(by%20default)%20the%20to%20and%20from%20fields%20in%20order%20to%20get%20all%20mail%20recipients%20(albeit%20you%20may%20want%20to%20include%20the%20CC'd%20emails%20to)%20and%20simply%20replace%20the%20semi%20colon%20with%20a%20comma%2C%20this%20is%20needed%20for%20the%20final%20and%20only%20other%20step.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20the%20%E2%80%9CPost%20your%20own%20adaptive%20card%20as%20the%20Flow%20bot%20to%20a%20user%E2%80%9D%20step%2C%20I%20am%20able%20to%20send%20an%20adaptive%20card%20notification%20in%20Teams%20to%20myself%20and%20provide%20a%20summary%20of%20the%20email%20I%20am%20transferring%2C%20from%2C%20subject%20and%20body%20preview%20and%20in%20my%20case%20the%20option%20to%20start%20a%20one%20to%20one%20chat%20with%20the%20sender%20or%20a%20group%20chat%20if%20there%20are%20more%20than%20one%20recipients%20of%20the%20email.%20This%20is%20done%20using%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fdeep-links%23generating-a-deep-link-to-a-chat%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3EDeep%20Link%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efeature%20of%20Teams.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20supplied%20a%20copy%2Fpaste%20option%20at%20the%20end%20of%20my%20post%20that%20will%20allow%20you%20to%20replicate%20this%20in%20your%20personal%20PowerAutomate%20%2F%20Teams%20environment%20in%20a%20matter%20of%20seconds.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E**NOTE**%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSTRONG%3Emake%20sure%20you%20update%20the%20TO%20field%20in%20the%20post%20adaptive%20card%20action%20as%20it%E2%80%99s%20currently%20set%20to%20youremail%5Bat%5Dyourdomain%5Bdot%5Dcom%3C%2FSTRONG%3E%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3ESo%2C%20what%20does%20the%20Cloud%20Flow%20look%20like%3F%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DamoBird365_0-1619420006466.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275450i92CAB5B73DB315ED%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DamoBird365_0-1619420006466.png%22%20alt%3D%22DamoBird365_0-1619420006466.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3EThe%20cloud%20flow%20only%20has%202%20actions%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3EThe%20flow%20simply%20consists%20of%20a%20compose%20action%20in%20order%20to%20structure%20the%20list%20of%20emails%20from%20the%20email%20trigger%2C%20above%20I%20don't%20include%20the%20cc'd%20emails.%26nbsp%3B%20You've%20therefore%20a%20couple%20options%20for%20the%20get%20group%20email%20compose%20action%2C%20do%20you%20want%20to%20include%20cc'd%20or%20not%20in%20the%20Group%20Chat%20Deep%20Link%3F%26nbsp%3B%20The%20below%20sample%20snippet%20expression%20includes%20the%20ccRecipients%2C%20but%20feel%20free%20to%20adjust%20as%20necessary.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3Ereplace(tolower(concat(triggerOutputs()%3F%5B%E2%80%98body%2FtoRecipients%E2%80%99%5D%2C%20%E2%80%98%3B%E2%80%99%2C%20triggerOutputs()%3F%5B%E2%80%98body%2Ffrom%E2%80%99%5D%2C%20%E2%80%98%3B%E2%80%99%2C%20triggerOutputs()%3F%5B%E2%80%98body%2FccRecipients%E2%80%99%5D))%2C%20%E2%80%98%3B%E2%80%99%2C%20%E2%80%98%2C%E2%80%99)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20second%20and%20final%20step%20is%20an%20adaptive%20card%20built%20via%20%3CA%20href%3D%22https%3A%2F%2Fadaptivecards.io%2Fsamples%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eadaptive%20cards%20designer%3C%2FA%3E.%26nbsp%3B%20It's%20a%20steep%20learning%20curve%20but%20Designer%20site%20gives%20you%20plenty%20of%20sample%20cards%20to%20experiment%20with%20and%20it%20is%20here%20that%20you%20need%20to%20include%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fdeep-links%23generating-a-deep-link-to-a-chat%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3Edeep%20links%3C%2FA%3E%26nbsp%3Bto%20your%20new%20Teams%20conversations%20which%20will%20automatically%20launch%20a%20teams%20conversation%20with%20these%20users.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3EThe%20User%20Experience%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMy%20colleague%20Alex%2C%20sends%20me%20an%20email%20with%20a%20list%20of%20colleagues%20in%20the%20to%20field.%26nbsp%3B%20Before%20the%20conversation%20gets%20out%20of%20control%2C%20I%20simply%20flag%20the%20email%20and%20instigate%20a%20move%20to%20Teams%20Group%20Chat.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22DamoBird365_1-1619420516989.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275452i67851DC47108FDED%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DamoBird365_1-1619420516989.png%22%20alt%3D%22DamoBird365_1-1619420516989.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWithin%20a%20matter%20of%20seconds%2C%20basically%20as%20fast%20as%20your%20Flow%20is%20triggered%2C%20a%20Flow%20Bot%20message%20is%20received%20to%20my%20Teams%20application%20with%20the%20subject%20and%20summary%20email%20body%20including%20a%20link%20to%20both%20a%20one%20to%20one%20and%20group%20chat.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22DamoBird365_2-1619420664133.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275453i877B8B396274F40F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DamoBird365_2-1619420664133.png%22%20alt%3D%22DamoBird365_2-1619420664133.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClicking%20on%20that%20Group%20DM%20in%20Teams%20button%20results%20in%20an%20opening%20conversation%20line%20and%20conversation%20subject%20(in%20draft)%2C%20all%20courtesy%20of%20the%20deep%20link.%26nbsp%3B%20Now%20it's%20time%20to%20get%20the%20conversation%20going.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22DamoBird365_3-1619420755529.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275454iD34CA2DA7B8F9C58%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DamoBird365_3-1619420755529.png%22%20alt%3D%22DamoBird365_3-1619420755529.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EWant%20to%20try%20the%20solution%20quickly%3F%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%3CFONT%20size%3D%224%22%3EDid%20you%20know%20that%20you%20can%20copy%20and%20paste%20Cloud%20Flow%20actions%20between%20environments%20really%20easily%3F%26nbsp%3B%20Simply%20by%20creating%20a%20new%20Cloud%20Flow%20with%20the%20%22%3CSPAN%3EWhen%20an%20email%20is%20flagged%E2%80%9D%20trigger%20you%20can%20then%20copy%20the%20provided%20code%20below%20and%20paste%20it%20into%20your%20ClipBoard%20by%20clicking%20Next%20Step%2C%20selecting%20My%20ClipBoard%20and%20pasting%20with%20Ctrl%20%2B%20V.%26nbsp%3B%20The%20only%20field%20you%20need%20to%20change%20is%20the%20Adaptive%20Card%20Recipient%20which%20by%20default%20is%20set%20to%26nbsp%3Byouremail%5Bat%5Dyourdomain%5Bdot%5Dcom.%26nbsp%3B%20Just%20make%20sure%20you%20set%20this%20to%20your%20own%20email%20address%20to%20receive%20the%20Adaptive%20Card.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorDamoBird365_4%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorDamoBird365_5%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22HowToCopyPasteSolution.gif%22%20style%3D%22width%3A%20600px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275456i628798D2F2C6081F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22HowToCopyPasteSolution.gif%22%20alt%3D%22HowToCopyPasteSolution.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%22id%22%3A%22f616b2c7-1645-4360-aff5-1710-a2bfb6a1%22%2C%22brandColor%22%3A%22%238C3900%22%2C%22connectionReferences%22%3A%7B%22shared_office365%22%3A%7B%22connection%22%3A%7B%22id%22%3A%22%2Fproviders%2FMicrosoft.PowerApps%2Fapis%2Fshared_office365%2Fconnections%2Fshared-office365-2c7a215d-616e-4cc2-9dab-9d05f14c21a5%22%7D%7D%2C%22shared_teams_1%22%3A%7B%22connection%22%3A%7B%22id%22%3A%22%2Fproviders%2FMicrosoft.PowerApps%2Fapis%2Fshared_teams%2Fconnections%2Fshared-teams-c32e6b36-e3dd-4ca6-806d-5969ba7e6dee%22%7D%7D%7D%2C%22connectorDisplayName%22%3A%22Control%22%2C%22icon%22%3A%22data%26amp%3Bcolon%3Bimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDMyIDMyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KIDxwYXRoIGQ9Im0wIDBoMzJ2MzJoLTMyeiIgZmlsbD0iIzhDMzkwMCIvPg0KIDxwYXRoIGQ9Im04IDEwaDE2djEyaC0xNnptMTUgMTF2LTEwaC0xNHYxMHptLTItOHY2aC0xMHYtNnptLTEgNXYtNGgtOHY0eiIgZmlsbD0iI2ZmZiIvPg0KPC9zdmc%2BDQo%3D%22%2C%22isTrigger%22%3Afalse%2C%22operationName%22%3A%22DamoBird365_Transfer_Email_To_Teams%22%2C%22operationDefinition%22%3A%7B%22type%22%3A%22Scope%22%2C%22actions%22%3A%7B%22Get_All_To_and_From_Emails%22%3A%7B%22type%22%3A%22Compose%22%2C%22inputs%22%3A%22%40replace(tolower(concat(triggerOutputs()%3F%5B'body%2FtoRecipients'%5D%2C%20'%3B'%2C%20triggerOutputs()%3F%5B'body%2Ffrom'%5D))%2C%20'%3B'%2C%20'%2C')%22%2C%22runAfter%22%3A%7B%7D%7D%2C%22Post_your_own_adaptive_card_as_the_Flow_bot_to_a_user%22%3A%7B%22type%22%3A%22OpenApiConnection%22%2C%22inputs%22%3A%7B%22host%22%3A%7B%22connectionName%22%3A%22shared_teams_1%22%2C%22operationId%22%3A%22PostUserAdaptiveCard%22%2C%22apiId%22%3A%22%2Fproviders%2FMicrosoft.PowerApps%2Fapis%2Fshared_teams%22%7D%2C%22parameters%22%3A%7B%22PostAdaptiveCardRequest%2Frecipient%2Fto%22%3A%22youremail%5Bat%5Dyourdomain%5Bdot%5Dcom%3B%22%2C%22PostAdaptiveCardRequest%2FmessageBody%22%3A%22%7B%5Cn%20%20%20%20%5C%22type%5C%22%3A%20%5C%22AdaptiveCard%5C%22%2C%5Cn%20%20%20%20%5C%22body%5C%22%3A%20%5B%5Cn%20%20%20%20%20%20%20%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22TextBlock%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22size%5C%22%3A%20%5C%22Medium%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22weight%5C%22%3A%20%5C%22Bolder%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22text%5C%22%3A%20%5C%22Transfer%20Email%20to%20Chat%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22wrap%5C%22%3A%20true%5Cn%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22ColumnSet%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22columns%5C%22%3A%20%5B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22Column%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22items%5C%22%3A%20%5B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22TextBlock%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22weight%5C%22%3A%20%5C%22Bolder%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22text%5C%22%3A%20%5C%22%40%7BtriggerOutputs()%3F%5B'body%2Ffrom'%5D%7D%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22wrap%5C%22%3A%20true%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22TextBlock%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22spacing%5C%22%3A%20%5C%22None%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22text%5C%22%3A%20%5C%22%40%7BtriggerOutputs()%3F%5B'body%2Fsubject'%5D%7D%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22isSubtle%5C%22%3A%20true%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22wrap%5C%22%3A%20true%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22width%5C%22%3A%20%5C%22stretch%5C%22%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5D%5Cn%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22TextBlock%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22text%5C%22%3A%20%5C%22%40%7BtriggerOutputs()%3F%5B'body%2FbodyPreview'%5D%7D%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22wrap%5C%22%3A%20true%5Cn%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%5D%2C%5Cn%20%20%5C%22actions%5C%22%3A%20%5B%5Cn%20%20%20%20%7B%5Cn%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22Action.OpenUrl%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22title%5C%22%3A%20%5C%22Start%20Group%20DM%20in%20Teams%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22url%5C%22%3A%20%5C%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3D%40%7Boutputs('Get_All_To_and_From_Emails')%7D%26amp%3BtopicName%3D%40%7BtriggerOutputs()%3F%5B'body%2Fsubject'%5D%7D%26amp%3Bmessage%3DHi%2C%20regarding%20your%20Email%20(%40%7BtriggerOutputs()%3F%5B'body%2Fsubject'%5D%7D).%20%5C%22%5Cn%20%20%20%20%7D%2C%5Cn%20%20%20%20%7B%5Cn%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22Action.OpenUrl%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22title%5C%22%3A%20%5C%22Start%201%3A1%20DM%20in%20Teams%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22url%5C%22%3A%20%5C%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3D%40%7BtriggerOutputs()%3F%5B'body%2Ffrom'%5D%7D%26amp%3BtopicName%3D%40%7BtriggerOutputs()%3F%5B'body%2Fsubject'%5D%7D%26amp%3Bmessage%3DHi%2C%20regarding%20your%20Email%20(%40%7BtriggerOutputs()%3F%5B'body%2Fsubject'%5D%7D).%20%5C%22%5Cn%20%20%20%20%7D%2C%5Cn%20%20%5D%2C%5Cn%20%20%20%20%5C%22%24schema%5C%22%3A%20%5C%22http%3A%2F%2Fadaptivecards.io%2Fschemas%2Fadaptive-card.json%5C%22%2C%5Cn%20%20%20%20%5C%22version%5C%22%3A%20%5C%221.2%5C%22%5Cn%7D%22%2C%22PostAdaptiveCardRequest%2FmessageTitle%22%3A%22Transfer%20Email%20To%20Teams%22%7D%2C%22authentication%22%3A%22%40parameters('%24authentication')%22%7D%2C%22runAfter%22%3A%7B%22Get_All_To_and_From_Emails%22%3A%5B%22Succeeded%22%5D%7D%7D%7D%2C%22runAfter%22%3A%7B%7D%2C%22description%22%3A%22***Please%20make%20sure%20you%20update%20the%20TO%3A%20in%20the%20Adaptive%20Card***%22%7D%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3ESummary%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%3CFONT%20size%3D%224%22%3EGet%20that%20internal%20conversation%20moved%20from%20traditional%20Email%20into%20modern%20Teams.%26nbsp%3B%20Not%20all%20conversation%20is%20better%20suited%20to%20Teams%2C%20I%20accept%2C%20but%20it's%20often%20far%20more%20productive%20to%20have%20the%20order%20of%20conversation%20in%20front%20of%20you%2C%20expecially%20if%20you%20have%20had%20a%20couple%20days%20off.%26nbsp%3B%20If%20a%20colleague%20has%20taken%20the%20initiative%20to%20shift%20a%20conversation%20into%20Teams%2C%20it%20will%20save%20the%20group%20a%20lot%20of%20effort%20having%20to%20sift%20through%20that%20email%20string%20and%20potentially%20allows%20you%20to%20work%20in%20real%20time%20seeing%20if%20someone%20is%20available%2Fonline%2C%20rather%20than%20wait%20for%20that%20next%20email%20to%20come%20in%20or%20maybe%20a%20couple%20of%20people%20reply%20to%20that%20email%20at%20the%20same%20time%20with%20a%20different%20opinion%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2F%40FE3C8A5543DEF164D4C09E9B7F45E1A4%2Fimages%2Femoticons%2Ffacepalm_40x40.gif%22%20alt%3D%22%3Afacepalm%3A%22%20title%3D%22%3Afacepalm%3A%22%20%2F%3E%26nbsp%3B%20I've%20enjoyed%20working%20with%20you%20email%2C%20but%20Teams%20messaging%20is%20my%20preferred%20internal%20conversation%20route%20these%20days%20if%20I%20can't%20start%20a%20call%20of%20course.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%3CFONT%20size%3D%224%22%3EWhat%20trigger%20would%20suit%20you%20best%3F%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%3CFONT%20size%3D%224%22%3EWould%20you%20include%20To%2FFrom%20or%20CC'd%20members%20too%20in%20your%20Group%20Email%3F%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%3CFONT%20size%3D%224%22%3EHave%20you%20used%20Teams%20Deep%20Links%20before%3F%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-left%22%3E%3CFONT%20size%3D%224%22%3ECheck%20out%20%3CA%20href%3D%22https%3A%2F%2Fdamobird365.birdhoose.co.uk%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emy%20blog%3C%2FA%3E%20for%20more%20ideas%20or%20if%20you%20have%20an%20idea%20of%20your%20own%20but%20don't%20know%20where%20to%20start%2C%20give%20me%20a%20shout%20via%20the%20various%20platforms%20-%20DamoBird365%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2290219%22%20slang%3D%22en-US%22%3E%3CP%3ETransfer%20your%20group%20chat%20emails%20to%20Teams%20with%20Power%20Automate%2C%20Adaptive%20Cards%20and%20Teams%20Deep%20Links.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2290219%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdaptive%20Cards%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edeep%20links%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20Automate%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2301461%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20-%20an%20adoption%20idea%3F%20Transfer%20your%20group%20chat%20emails%20to%20Teams%20with%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301461%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20for%20sharing%2C%20what%20an%20awesome%20idea!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2309935%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20-%20an%20adoption%20idea%3F%20Transfer%20your%20group%20chat%20emails%20to%20Teams%20with%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2309935%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20recently%20done%20a%20video%20on%20this%20solution%20too%20-%20if%20you%20care%20to%20have%20a%20watch%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2F%40A027B0AAF3CA617A1E2E22C4E761B2FE%2Fimages%2Femoticons%2Fstareyes_40x40.gif%22%20alt%3D%22%3Astareyes%3A%22%20title%3D%22%3Astareyes%3A%22%20%2F%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2Ffo0EXcjWN6w%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EVideo%20is%20here%3C%2FA%3E%26nbsp%3Bor%20watch%20below%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2Ffo0EXcjWN6w%3Fenablejsapi%3D1%26amp%3Borigin%3Dhttp%3A%2F%2Fexample.com%22%20width%3D%22640%22%20height%3D%22390%22%20frameborder%3D%220%22%20id%3D%22player%22%20type%3D%22text%2Fhtml%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2319132%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20-%20an%20adoption%20idea%3F%20Transfer%20your%20group%20chat%20emails%20to%20Teams%20with%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319132%22%20slang%3D%22en-US%22%3E%3CP%3EI%20love%20it.%20tried%20it%20out%2C%20and%20works%20like%20a%20charm%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2F%408341BD79091AF36AA2A09063B554B5CD%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Apr 26 2021 12:31 AM
Updated by: