Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Match formatting

Posted on 25 Nov 2024 21:22:30 by
Hi everyone,
 
aim is to create a cloud flow - triggered by a response to a form. First question: Use template A, B or C - supported by three conditions and "Populate by Microsoft Word template" works well. The second question is defining a technical platform. There is a choice of three X, Y or Z. 
 
The word template has currently a section "Technical details" and a "Plain text content control". Via "get file content using path" the details are loaded from an input document but the format is not matching as the basic template has a specific formatting in bullet points - even if the source document has the same format. 
 
Has anybody a solution to put in the correct formatting in the flow?
 
Kind regards,
J
  • JR-25112115-0 Profile Picture
    JR-25112115-0 on 27 Nov 2024 at 13:56:25
    Match formatting
    As i rely on the Populate Word Document connector, only plain text seems to be supported to fetch the input. I can't fill the Rich Text Content Control within a "Populate Word Document". Do you have an idea how to insert the fetch from get file content into the Rich Text content control?
     
    Another question I have: The source document is a .docx with three formatted header sections and beneath each header several lines with bullets point. Can you give me a little bite more content to do string replacement or HTML conversion?
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,058 on 26 Nov 2024 at 23:39:27
    Match formatting
    The problem you're facing likely arises because the "Plain Text Content Control" in Word templates does not preserve rich formatting such as bullet points.
    Open your Word template and replace the Plain Text Content Control in the "Technical Details" section with a Rich Text Content Control.
     
    Use "Get file content using path" to retrieve the details from the input document.
    Process the content using String Replace or HTML conversion to adjust formatting.

    For example:

    Replace line breaks in the source document with bullet points:
    • Original: Platform X\nPlatform Y\nPlatform Z
    • Replace: <ul><li>Platform X</li><li>Platform Y</li><li>Platform Z</li></ul>
     
    You could also try using Encodian's "Populate Word Document" action. Encodian supports inserting rich text, including bullet points and other HTML-formatted content, into placeholders in a Word document.
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,137

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,813

Leaderboard