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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Microsoft Graph ...
Power Automate
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.

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at

    Show your flow.

  • ajd3rd Profile Picture
    12 on at

    EmailFlow.jpg

     

    Not sure if this is the most efficient way to share the flow.  I need to have this flow run and have the email deposited in the drafts folder of a different user so they can edit the email and send it from their account.

  • VictorIvanidze Profile Picture
    13,073 on at

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

    Use 

    https://graph.microsoft.com/v1.0/users/{otheruserID}...
  • ajd3rd Profile Picture
    12 on at

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

     

    Many thanks for your help.

  • VictorIvanidze Profile Picture
    13,073 on at

    Run the MS GRAPH Explorer and start with this request:

    https://graph.microsoft.com/v1.0/users
  • ajd3rd Profile Picture
    12 on at

    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
    13,073 on at

    >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

    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.

  • Mychel Profile Picture
    8 on at

    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!!

  • Mychel Profile Picture
    8 on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard