web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add email link to team...
Power Automate
Answered

Add email link to teams message

(0) ShareShare
ReportReport
Posted on by 3

Hi

 

I am trying to figure out how to add a link to a teams message that will automatically create a new email in that users outlook with me as the to field and a specific subject, so they can click on it and it will create the draft email automatically.  Is this possible?

 

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @leave-me-alone,

     

    You could use an adaptive card and click a button. After this button you could use an Graph API call to create the draft e-mail message.

     

    I have blogged about that draft e-mail creation approach a couple of years ago:

    https://www.expiscornovus.com/2021/04/14/draft-mail-message-for-a-selected-item/

     

     

    Below is an example

     

    1. A Get my profile (v2). This action collects the id and mail

     

    2. A Post adaptive card and wait for the response

    a. uses the json below for the Message field

    {
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "type": "AdaptiveCard",
     "version": "1.0",
     "body": [
     {
     "type": "TextBlock",
     "size": "Medium",
     "weight": "Bolder",
     "id": "Title",
     "text": "Create Draft Email",
     "horizontalAlignment": "Left"
     } 
     ],
     "actions": [
     {
     "type": "Action.Submit",
     "title": "Create Draft Email"
     }
     ]
    }

     

    3. A Send an HTTP request (Office 365 Groups connector)

    a. Uses the URI below

    https://graph.microsoft.com/v1.0/users/@{outputs('Get_my_profile_(V2)')?['body/id']}/messages

    b. Uses the Body payload below

    {
     "subject":"E-mail template flow",
     "importance":"Low",
     "body":{
     "contentType":"HTML",
     "content":"They were <b>awesome</b>!"
     },
     "toRecipients":[
     {
     "emailAddress":{
     "address":"@{outputs('Get_my_profile_(V2)')?['body/mail']}"
     }
     }
     ]
    }

     

    createdraftemail.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard