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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Generate Docx File wit...
Power Automate
Unanswered

Generate Docx File with RichText Content using OOB connectors in PowerAutomate

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

============ To Achieve ================

Create a word file (.docx) with Rich Text Content(Text must be bold, italic, underlined, highlighted, etc). The document can be saved in sp doc lib, list item attachment, one drive.

Steps performed

=====================

1) When an item is created in the sp list trigger the wf .

Option A

==============

Create a dummy HTML use the replace function and save the file as .docx. The issue is that the .docx file is getting created but I am unable to open it. Below is the screenshot I am getting after docx is getting created but it cannot be opened.

Docx File Error.jpeg

Option B

===========

use the action/ connector "Populate word template " used developer tools in Word inserted content controls & Quick parts as well but the limitation in the connector is it will not append Rich Text in Word. https://learn.microsoft.com/en-us/connectors/wordonlinebusiness/

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Hi @anirudhev 

     

    Apologies its very late for me, but I believe I see the issue.

     

    You are telling the 2nd Compose to replace Test with the output of itself, which doesn't exist yet.

    If you open the File in NotePad or NotePad++ or any other Text reader, can you share what you see.

     

    I believe you have corrupted the content by doing what you are doing in Compose 2

     


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard