Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 9TR3Kaymd86xI6pqkxHzNP
Power Automate - Building Flows
Unanswered

Populate MS Word Document Template with hyperlinks

Like (1) ShareShare
ReportReport
Posted on 16 Feb 2021 21:09:40 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

  • NerdingNate Profile Picture
    42 on 09 Apr 2024 at 21:00:20
    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.

  • mrmpanah Profile Picture
    29 on 26 Oct 2023 at 12:13:19
    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.

  • AlexTheKidd Profile Picture
    178 on 26 Oct 2023 at 10:54:00
    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 26 Oct 2023 at 10:26:39
    Re: Populate MS Word Document Template with hyperlinks

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

  • emfuentes27 Profile Picture
    578 on 03 Oct 2022 at 15:31:32
    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.

  • lr5 Profile Picture
    5 on 29 Sep 2022 at 21:23:39
    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 87

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started