Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

(0) ShareShare
ReportReport
Posted on by 12

I have a flow that creates a draft email and places it in my drafts folder.  I need to create draft emails and drop them into another user's Drafts folder.  I've tried modifying both the sender and from addresses but it still places it in my mailbox.

  • Mychel Profile Picture
    8 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    yes it works!! just make sure the flow is an instant flow and u just have to add yr user to run the flow themselves so power automate can extract the email address and send the draft to the right draft mail box

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    Hi @ajd3rd,

    did you get it working? 

  • Mychel Profile Picture
    8 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    To eliminate steps in the Condition Control, you can add the GET USER PROFILE at the top, after FOR A SELECTED ITEM. With this step, you will only have to GET USER PROFILE once.

  • Mychel Profile Picture
    8 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    Hi ajd3rd,

     

    I was searching for a similar solution, where i need the draft email to sit in the draft mailbox of the user that triggered my instant flow.

     

    Based on your creation above, i found that the below screenshot worked for me:

     

    Mychel_0-1663826408079.png

    Picture 1 just shows the Flow Structure of my Instant Flow. For Selected Item and Get Item is Simple. i just need to choose my site and list correctly.

     

    Mychel_1-1663826457589.png

    Picture 2 is just the conditions for my flow to run.

     

    Mychel_2-1663826617820.png

    Picture 3 is the Yes/No Condition and what is the URI i used. What is important is to use GET USER PROFILE as there is more than 1 user using this flow.

     

    As u can see, its a mixture of what u used (mailfolders/drafts) and what i used previously https://graph.microsoft.com/v1.0/me/messages

     

    Hope this helps!!

  • ajd3rd Profile Picture
    12 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    Thanks for your help.  I'm see the value of Graph Explorer, I didn't know that was available.  I created the following:

     

     

    EmailDraft2.JPG

    It appears the user id and folder id work.  The flow constantly retries sending the email.  I'm thinking I have something wrong in the URL for the last step.

     

    Again many thanks for your help.

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    >Does that allow me to change the user and then place the message in another users drafts folder?

    You do not need to "change the user".

    You have to (via MS GRAPH):

    1)get the other user ID

    2)get the other user draft folder ID 

    3)create a draft message in the Drafts folder of the other user 

  • ajd3rd Profile Picture
    12 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    Victor,

     

    Thanks for the replies.  I'm new to this and not sure what you are directing me to do.  I looked at MS Graph Explorer but I'm unsure what to do with the results of user.  Does that allow me to change the user and then place the message in another users drafts folder?

     

    Thanks for you help!

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    Run the MS GRAPH Explorer and start with this request:

    https://graph.microsoft.com/v1.0/users
  • ajd3rd Profile Picture
    12 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    Thanks for the quick reply.  Would I enter the user as their domain user account?

     

    Many thanks for your help.

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Using Microsoft Graph to Create Email Draft and Save in Another Users Mailbox

    The URL you are using assumes you will work only with your own mailbox.

    Use 

    https://graph.microsoft.com/v1.0/users/{otheruserID}...

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow