web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Automate HTML to...
Power Apps
Unanswered

Power Automate HTML to PDF

(0) ShareShare
ReportReport
Posted on by 372

I have flow like this,

Flow P.AutomateFlow P.Automate

 

and I have database like this, 

DatabaseDatabase

 

This is the detail of the flow,

Detail flowDetail flow

 

So, I want that HTML can grab all data based on 'Job No' from the database. When I choose, Job No A.23.3010, then the data on pdf just the data which has Job No A.23.3010. 

I try used formula No_x0020_Job eq '[TextInput2]' to call all data with that Job No. TextInput2 is the Job No control in PowerApps. But it cant work, can you help me to solve this problem? Thanks in advance.

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Power Automate HTML to PDF

    Hi,

     

    The filter should be 

    No_x0020_Job eq 'Your PowerApps variable form the trigger'

     

  • firda59 Profile Picture
    372 on at
    Re: Power Automate HTML to PDF

    can you give me example for this 'Your PowerApps variable form the trigger'. I dont understand how to define this thing

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Power Automate HTML to PDF

    SudeepGhatakNZ_0-1685071813307.png

     

  • firda59 Profile Picture
    372 on at
    Re: Power Automate HTML to PDF

    In my powerApps, there is no varText. How to bring it up? 

    Screenshot (37).png

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Power Automate HTML to PDF

    If you are triggering the flow from PowerApps, you must be sending a parameter to it?

    How To Trigger A Power Automate Flow From PowerApps (c-sharpcorner.com)

     

  • firda59 Profile Picture
    372 on at
    Re: Power Automate HTML to PDF

    Ok, thank you. And there's another problem. When I wanna save this flow, I got this:

     
    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Initialize_variable' at line '1 and column '8325' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Initialize_variable' to be referenced by 'repeatItems' or 'items' functions.'.'

    firda59_0-1685082378201.png

    How to solve this problem?

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Power Automate HTML to PDF

    What are you setting inside the variable?

  • firda59 Profile Picture
    372 on at
    Re: Power Automate HTML to PDF

    here it is

    firda59_0-1685082971050.png

    compose is contain HTML text table, and this is what I insert on variable

    firda59_1-1685083035151.png

    do you know whats wrong with this?

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Power Automate HTML to PDF

    There are several things that don't look right.

    Intialize variable should be at the top of flow. It should be of type array.

    Use Append variable inside the loop.

    Use select and create HTML table actions to create the html

    Finally convert it to HTMl

    Do you need a sample?

  • firda59 Profile Picture
    372 on at
    Re: Power Automate HTML to PDF

    Yes, I need a sample, so I can follow the flow like what you explain to me. Thanks in advance

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard