Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Trying to create a flow that generates a PDF and emails it with responses from a Form

(0) ShareShare
ReportReport
Posted on by
Goal: When a new Form submission is received, a PDF is automatically created with the details of the form response and emailed out.

I have the basics down I think. I am not well versed in coding or PA. I am using the Initialize Variable function to create the PDF using HTML/CSS code. The contact is pulling from Forms using Dynamic Content. I would like to use some java script in this code that actually reads the response and then makes some color changes on the PDF based on the answer. I am unsure how to do this. I have a feeling I may be doing this in the hardest way possible, lol. I appreciate any tips or advice.
  • Suggested answer
    AlexEncodian Profile Picture
    AlexEncodian 4,302 on at
    Trying to create a flow that generates a PDF and emails it with responses from a Form
    @DC-12012025-0​​​​​​​

    Personally, I find it much easier to populate a word document and then convert this to PDF.
     
    Encodian's Populate Word Document action has powerful document generation features that includes dynamic background / fill settings. Reference - Background Colors / Fill Settings – Encodian Customer Help
     
     
  • narayan225 Profile Picture
    narayan225 2,390 on at
    Trying to create a flow that generates a PDF and emails it with responses from a Form
    You can initialise the variable that stores the color variable.
    Then use a condition to check the value of the form submission field.
    And if the condition is true, you can set the color variable to the one that you one.
     
    Then when you initialise the HTML/CSS, you can use the color variable to change the color the one you want.
     
    This way it should work.
     
    Hope this helps.
    Cheers!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard