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
Unanswered

Populate MS Word Document Template with hyperlinks

(1) ShareShare
ReportReport
Posted on by 578

I have a flow that I use to populate a MS Word Template. I have no issues with that except with two of the Content Controls. One of them is an email address, the other is an URL (hyperlink). The email address I think I can just style it as an hyperlink and it should work, but the URL is the big issue here. The URL I'm inserting from the Flow is pretty long, so I would like to to change it to something like a Click Here. First I thought of adding a Rich Text Content Control, but I don't think those are supported by Power Automate, so these fields are just Plain Text Content Controls. Any suggestions would be appreciate it

I have the same question (0)
  • lr5 Profile Picture
    5 on at
    Re: Populate MS Word Document Template with hyperlinks

    Hi @emfuentes27

     

    Is there any chance that you successfully made it happen? I'm trying something very similar, and no luck unfortunately.

  • emfuentes27 Profile Picture
    578 on at
    Re: Populate MS Word Document Template with hyperlinks

    Unfortunately, no. I was unable to achieve this. Sorry @lr5 . I I come up with something, I'll post it. Good luck.

  • mrmpanah Profile Picture
    29 on at
    Re: Populate MS Word Document Template with hyperlinks

    Hi, any chance you resolved this issue? I am really stuck on this, thanks. 

  • AlexTheKidd Profile Picture
    178 on at
    Re: Populate MS Word Document Template with hyperlinks

    @mrmpanah the only way I've figured out how to fill out a word document is by using Quick Parts and a Sharepoint document library to store the file - then send it via mail (all done through Power Automate, but the setup has to be done manually).
    For instructions, see https://wonderlaura.com/2019/01/09/microsoft-flow-quick-parts/ 

  • mrmpanah Profile Picture
    29 on at
    Re: Populate MS Word Document Template with hyperlinks

    Thank you. I tried the Quick Parts, but it just displays the URL. I'm not sure how to add a custom name that will function as a hyperlink.

  • NerdingNate Profile Picture
    42 on at
    Re: Populate MS Word Document Template with hyperlinks

    My brethren, rejoice! Our comrade ashwanidv100 (https://community.powerplatform.com/profile/?userid=4A0943F0-53F5-4550-ADD1-8F2415CB3A21) has found a way to make this happen using HTML instead of a word template in the following post:
    https://powerusers.microsoft.com/t5/General-Power-Automate/Picture-Content-Control-inside-Repeating-Section-Content-Control/td-p/1026660

     

    Here is a high-level of what they did to make this work:

    1. Take your current word document and extract the HTML from it. You can do this either by:
      1. Saving the word file as a Web Page, Filtered with a .html extension and then opening that file in VS Code.
      2. Using an online Word to HTML converter tool.
    2. I'd next recommend using a Compose step somewhere within your flow to capture the entirety of this HTML code. You can then inject things as you need into this Compose step.
    3. Then use the OneDrive Create File action and create an HTML file using the Outputs from the Compose step.
    4. Next, use the OneDrive Convert File action to convert the HTML File (use the File Locator property from your Create File action).
    5. Finally, do one more OneDrive Create File action to create a PDF using the File Name and File Content properties from your Convert File action.

    Definitely isn't as easy as it would be if the word connector allowed us to use Rich Text, but it's even more flexible than the word connector as it will allow you to do repeating sections within repeating sections. Repeating section inception babyy.

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

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard