cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

using html and powerapps to create a pdf file in flow

Hi 

 

I have very little experience with Flow.  I am trying to create an HTML file from PowerApps data.  I have got mechanics of the flow working but when the HTML file is created in Flow it shows as text ,i.e. the code, rather than the result. So rather than 'G' the text shows as '"&Gallery2.Selected.srOverallRAG&" '.  The HTML in powerapps works as designed.  As the code works in Powerapps  I guess the way I've built the flow makes it read the code as text but I can't find a way to solve the problem.  

 

The flow is launched in Powerapps with a button with this code in 'OnSelect'.  'PowerApp->Createfile'.Run(HtmlText1.HtmlText)'

 

I am using this code in the Create file > file content selector:  CONCAT('') with the html copied from powerapps inbetween the single quotes. 

 

The powerapps code sits within the HTML as per the following extract (it is within HTML tags) :   

 


"&Gallery2.Selected.srOverallRAG&"


"&Gallery2.Selected.Title& " "& Text(Gallery2.Selected.srReportDate,"[$-en-US]dd/mm/yyyy","en-GB")&"

 

I would appreciate any help you could give me.

 

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Helper I
Helper I

so I found the issue - the CONCAT() expression was not needed for this - I just replaced this with 'CreateFileFileContent' in the File Content field.

View solution in original post

1 REPLY 1
Helper I
Helper I

so I found the issue - the CONCAT() expression was not needed for this - I just replaced this with 'CreateFileFileContent' in the File Content field.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (75,131)