PowerApps Create PDF of sharepoint custom form

%3CLINGO-SUB%20id%3D%22lingo-sub-2571884%22%20slang%3D%22en-US%22%3EPowerApps%20Create%20PDF%20of%20sharepoint%20custom%20form%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2571884%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20having%20trouble%20getting%20a%20pdf%20generated%20from%20a%20Sharepoint%20custom%20form%20in%20Powerapps.%26nbsp%3B%20I%20generate%20an%20HTML%20document%20in%20Powerapps%20and%20then%20use%20a%20Flow%20to%20save%20it%20and%20convert%20it%20to%20a%20pdf.%26nbsp%3B%20When%20I%20run%20the%20Flow%20it%20tests%20fine.%26nbsp%3B%20In%20Powerapps%20there%20are%20no%20errors%20with%20the%20code.%26nbsp%3B%20When%20I%20press%20the%20button%20that%20runs%20the%20process%20nothing%20seems%20to%20happen.%26nbsp%3B%20Here%20is%20the%20code%20for%20the%20button%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPDFButton.Run(%22Record%20Number%20-%22%20%26amp%3B%20BrowseGallery1.Selected.ID%2C%20PDFExport.HtmlText%2C%20%22Record%20Number%20-%22%20%26amp%3B%20IDValue)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20also%20attached%20the%20code%20for%20PDFExport.HtmlText%20that%20creates%20the%20html%20in%20Powerapps.%26nbsp%3B%20Any%20suggestions%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2571884%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I'm having trouble getting a pdf generated from a Sharepoint custom form in Powerapps.  I generate an HTML document in Powerapps and then use a Flow to save it and convert it to a pdf.  When I run the Flow it tests fine.  In Powerapps there are no errors with the code.  When I press the button that runs the process nothing seems to happen.  Here is the code for the button:

 

PDFButton.Run("Record Number -" & BrowseGallery1.Selected.ID, PDFExport.HtmlText, "Record Number -" & IDValue)

 

I've also attached the code for PDFExport.HtmlText that creates the html in Powerapps.  Any suggestions would be greatly appreciated.

 

0 Replies