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 / Converting Email Body ...
Power Automate
Unanswered

Converting Email Body to a Word Document in Power Automate (Without OneDrive for Business)

(0) ShareShare
ReportReport
Posted on by 6

I’m trying to convert the body of an email into a Word document (.docx) and upload it to SharePoint using Power Automate.

Currently, I have a flow set up that triggers when an email is received. It converts the email’s HTML content to plain text, but I’m running into issues when trying to create the Word document.

When I use the SharePoint "Create file" action and specify a .docx extension, the file gets created successfully. However, when I try to open it in Word, I receive an error stating that the content is unreadable. I'm unsure how to properly format the text so that Word recognizes it correctly.

Additionally, I want to ensure that each generated file has a unique name to avoid conflicts. I would prefer to avoid using OneDrive for Business, as I don’t want files stored locally or tied to a specific user account. However, if OneDrive is the only solution, I could add an extra step to delete the file after processing.

How can I properly populate the email body into a Word document so that it opens without errors? Is there a way to do this directly in SharePoint without relying on OneDrive?

Any guidance would be greatly appreciated!

Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    There is another way to try this - create a word template and use populate word template action to populate the email content inside it. Then use content generated from that action in Create File action.
     
     
    Another way is to via using convert file action in onedrive , temporarily creating files and then creating same file in sharepoint using onedrive file content
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard