cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Converting form responses to PDF not creating usable PDF

I'm trying to create a PDF that is generated from a Microsoft Form and sent to a specific email address whenever the form is submitted.

 

With the flow below I'm able to send myself an HTML file, for some reason it is not converting to a PDF. I have managed to send myself a PDF but I've never been able to open it properly as it hasn't been decoded correctly.

 

Capture.PNGCapture22.PNG

 

Does anyone have any idea why this might be or where I'm going wrong?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: Converting form responses to PDF not creating usable PDF

Hey @Shasley 

 

Can you confirm that you are using the dynamic content from the convert pdf action itself : (I ask because I see an extra get file content action there. Note that the convert action is just converting the file temporarily but not creating a new pdf there. )fff.PNG

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User
Dual Super User

Re: Converting form responses to PDF not creating usable PDF

Hey @Shasley 

 

Can you confirm that you are using the dynamic content from the convert pdf action itself : (I ask because I see an extra get file content action there. Note that the convert action is just converting the file temporarily but not creating a new pdf there. )fff.PNG

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

Highlighted
Regular Visitor

Re: Converting form responses to PDF not creating usable PDF

Thanks @yashag2255,

 

I've re-run the flow with your suggested edit and I'm now able to open the PDF, however, all the file contains is:

 

webhookId eventType resourceData
a18657bb-
6f8a-483b-
8360-
a27a8c8fe8ee
ResponseAd{"dfeodrmId":"LksKkLNqLEWuzAuaq9nNf7A_BhReJKpEoAsVgajdyRVUNkhCRDUyNTRPREgyMjJQTjVGRTVWNUU4Vi4u

Highlighted
Dual Super User
Dual Super User

Re: Converting form responses to PDF not creating usable PDF

Hey @Shasley 

 

Can you try using a compose action to compose everything for the html file content? 

 

Also, can you try .html extension instead of the .htm extension and see if it works?

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Regular Visitor

Re: Converting form responses to PDF not creating usable PDF

Hi @yashag2255,

 

Thanks for your help on this.

 

It is now working. The only issue now is that it's just displaying the contents of the file on one line which is obviously not very attractive. Is there an easy way to edit the styling?

 

Many thanks.

 

 

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,081)