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

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2025 20:26:38 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,255 on 14 Jan 2025 at 17:17:08
    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,298 on 13 Jan 2025 at 12:43:35
    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

End of Year Newsletter…

End of Year Community Newsletter…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #11 New Opportunities…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,609

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,420

Leaderboard
Loading started