Color formatting in Word document Populated from a SharePoint list

Copper Contributor

Hello All,

 

[Implementing Environment - Office365]

I am working on a requirement where in its required to generate a PDF document whenever a List item is added. I have implemented this functionality using Automate Flow where in the flow reads the list item and get the content from Word template. Inside the word Template, using Quick Parts, placed the Document Property in a designed template format. My flow creates the file in Document library using the contents taken from the Word Template and with OneDrive converter, generated the PDF. Till this point everything is fine.

 

Phase 2 of requirement is the template has few rows which are colored based upon the Document Property Value. Sharing the screenshot below:

Alanda2021_0-1622470318367.png

This was manual and they want it to be automated. Now Document library doesn't take rich text and thus the rich text in Populated word document is displayed as plain text so any html tags would be displayed. And I understand, with the current capability of Automate Flow and SharePoint Online Document Library, this is not possible.

 

My question is :

  1. How can this be rendered dynamically?
  2. Is Using Macros to implement this is preferred? If so, Kindly share some suitable links as I am very much new to it.
  3. How about SPFX? If yes, how it can be implemented.

 

Thank You!

 

 

Alanda

1 Reply
Appreciate your response. Much needed input.