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 / Move an email sent in ...
Power Automate
Suggested Answer

Move an email sent in previous step

(1) ShareShare
ReportReport
Posted on by 296
Good Afternoon
 
I have a flow that sends an email from content submitted via a form. I would like to move that email into a specific folder once sent.
 
There is an action Move Email but there's no information available from the action to send the email. 
There's no option in the Send an Email (V2) action to save the email to a specific folder.
 
I can't get back to the classic view when looking at the run and I can't see the message id in the outputs of that action.
 
Is there any way I can get the id of that message to move it? I will need them for an audit later this year and it will be a real help to have all of it ready to go.
 
Thanks,
Christine
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    So you used to be able to look at 
    outputs('Send_an_email_(V2)')?['body/MessageId']
     
    I am not 100% sure that it works. 

    But what you could do is
    use Get Emails and add a filter that would be like matching your Subject etc and point at the Sent Folder
    Once you have that, you should either get back 0 or 1 Email
    OR
    You can sort them by sent date and get the Top 1 to get the one you just sent.
     
    Now you can use the Move Email to move it.
  • Amapola188 Profile Picture
    296 on at
    Neither solution suggested by @Michael E. Gernaey worked for me.
     
    outputs('Send_an_email_(V2)')?['body/MessageId'] doesn't return any output
     
    And the Get Emails action either gives me an empty output (with filter) or an error (Error loading inputs)
     
    Unfortunately, Microsoft also must have decided to send empty fields from a form submission through differently so between one flow in the morning and another two hours later, the flow broke in another place as well. (Could no longer filter out empty records on empty(), it now comes through a '0' - that is a string, not a number).
  • Amapola188 Profile Picture
    296 on at
     
    Hi Michael, sorry, I was off sick. - I tried the Get Items based on a view and that pulled the person field through.
     
    It throws up another problem though. I'm filtering by an empty field but it looks like empty fields now no longer come through at all so how can you filter by that?
    Not sure at this stage if that's the bigger problem in the picture!
     
     
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    I believe what was being proposed is that you need a way to uniquely identify the email being sent but at this stage you are unable to use message id.
    Create a unique value and either add it in the body of the email or in the subject.
    Send the email.
    You can now use Get mail to search the sent items within the subject or the body for that unique value and get the message id.
    You can now use the message id to move the email to the folder,

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard