Is it possible to download a response PDF or CSV from the API or could it be sent by webhook? | Community
Skip to main content
Answered

Is it possible to download a response PDF or CSV from the API or could it be sent by webhook?


Hello, I’d like to automatically receive through a webhook a PDF or CSV with the data formatted as question and answer (as the Typeform website offers in the Results section) when each user submit their responses of a form. It is that posible? 

 

If not, any alternative solution? 

 

Million thanks!

Best answer by john.desborough

@DMform - from another user here

you could connect the typeform to Google Sheets and then using an add-on called Document Studio and a merge template created in Google Slides or Docs, you can output the data into a merge doc, have it saved as a pdf and mailed to you/a recipient. 

here is a link to a live example - if you put in your email at the end you will get the result mailed to you. 

des

View original

15 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5257 replies
  • Answer
  • August 31, 2021

@DMform - from another user here

you could connect the typeform to Google Sheets and then using an add-on called Document Studio and a merge template created in Google Slides or Docs, you can output the data into a merge doc, have it saved as a pdf and mailed to you/a recipient. 

here is a link to a live example - if you put in your email at the end you will get the result mailed to you. 

des


  • Author
  • Explorer
  • 3 replies
  • August 31, 2021

Thanks @john.desborough for your quick response!

So I still would need to adapt the data by my own and create a template, right?

I was wondering if Typeform had the option of automatically create and send the same (or a similar PDF) as they offer in the website at Results → Responses → “Print this response” pdf (image below)

Also, instead of emailing it, sending it via Webhook to my server.

 

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • August 31, 2021

Hi @DMform We don’t have a way automatically send the results in a PDF format, but I would definitely suggest the option @john.desborough provided! 


  • Author
  • Explorer
  • 3 replies
  • August 31, 2021

Thanks Liz for your help!


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • August 31, 2021

Not a problem, @DMform !


the other max
Forum|alt.badge.img

I’m interested in programmatically adding Typeform responses to a SharePoint document library. I’d love for them to come as PDFs, but I’m curious if anyone has done something interesting in the O365 world.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • January 26, 2023

@john.desborough you don’t use 365, do you? 


the other max
Forum|alt.badge.img

I got it working.

I’m using a logic app to:

  • Receive and parse a typeform webhook payload using requests connector
  • Fill in a word template with the response data using Word Online connector
  • Save a temp word file in a temp folder using SharePoint connector
  • Convert the temp file to a PDF using Word Online connector
  • Save the PDF in our client files using the SharePoint connector

The result is a formatted PDF in our client files shortly after a client completes the form.

Only thing I cannot figure out is how to delete the temp files, lol. It’s a limitation with the SharePoint connector.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • January 27, 2023

Ah, glad to hear you got it working, @the other max ! What is the logic app you’re using? 


the other max
Forum|alt.badge.img

I’m using Azure logic apps. My prototype is rough, but I think I can make it work pretty well. 😁


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • January 30, 2023

Ah got it, @the other max ! If you’re open to sharing your workflow more in-depth, we’d love to see it! I can’t say I’m familiar with Azure apps, so it’s always helpful to get some insight into what others are doing. 


the other max
Forum|alt.badge.img

I’ll share all the details once I have it past beta. 😊


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • February 1, 2023

Woohoo! Thanks, @the other max 


the other max
Forum|alt.badge.img

I posted my automatic PDF export process here 😁

 


  • Explorer
  • 1 reply
  • June 30, 2023

Hello @DMform, does your .pdf solution work with photo uploads via typeform? Within google sheets, the photos are URLs. Are you able to have the photos displayed within the .pdf?


Reply