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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

End Goal - Archive a Mailbox

(0) ShareShare
ReportReport
Posted on by 15

Hi,

 

So I have figured out how to convert emails to text form. When I terminate a user is there a way to create a file in share point that has every email they sent or received? Also if I could organize it by date, person who sent it etc etc that would be great too!

Categories:
I have the same question (0)
  • Verified answer
    v-yiwenxie-msft Profile Picture
    Microsoft Employee on at
    Re: End Goal - Archive a Mailbox

    Hi @dreavisPH 

     

    First, convert emails to text form by using the ‘html to text’ action.

     

    Then, add the content to the text, containing the elements of subject, body, importance level, sender email address, received time.

    The function used:

    items(‘Apply_to_each’)?[‘from’]
    items(‘Apply_to_each’)?[‘receivedDateTime’]

     

    Finally, create files in SharePoint. These files contain the text.

     

    1.6-2.PNG

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard