Submission PDF: Ability to generate the PDF via webhook

  • Profile Image
    brett.crowley
    Asked on June 23, 2020 at 06:29 PM

    Hi - we are using webhooks on form submission - this gives us all the form fields but not the completed PDF - we need to save a copy of this PDF in a 3rd party system.

  • Profile Image
    jonathan
    Answered on June 23, 2020 at 08:31 PM

    We apologize for inconvenience. But can you please provide us more information on what you wanted to do.

    Do you perhaps wanted to get the form submission PDF document/report using Webhook?

    Right now you can already download or send the submission PDF document using the Form Builder.

    We will wait for your updated response.


  • Profile Image
    brett.crowley
    Answered on June 23, 2020 at 11:52 PM

    There's not much more I can tell you except we're using webhooks, we need a PDF, we don't get a PDF. Your platform appears to be completely useless when it comes to getting PDF's of data - of course, I could go and download the PDF individually, but I'm not doing that for 1000 submissions.

  • Profile Image
    roneet
    Answered on June 24, 2020 at 12:32 AM

    You can also get a link of the PDF with the following URL:

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid={id}&formID={formID}

    {id} - submission ID

    {formID} - form ID

    This link will generate a single PDF.

    Guide: https://www.jotform.com/help/549-Where-to-Find-the-Submission-ID

    To get the Form ID:

    Guide: https://www.jotform.com/help/401-Where-to-Find-My-Form-URL

    Let us know if you have further questions.

    Thanks.

     

  • Profile Image
    brett.crowley
    Answered on June 24, 2020 at 12:37 AM

    Which is also next to useless as you need to be authenticated and can't authenticate with an API key - is that correct?

  • Profile Image
    roneet
    Answered on June 24, 2020 at 12:55 AM

    You would have to disable the settings that are required to be logged in while viewing the submissions from your account settings page:

    15929742841.PNG

    Few examples based on your form:

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid=4687626340501130813&formID=201698378235061

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid=4687019830508882222&formID=201698378235061

    Please disable the settings shown above.

    Thanks.



  • Profile Image
    brett.crowley
    Answered on June 24, 2020 at 12:58 AM

    So i need to disable authentication and effectively have our data in the public domain - THAT IS NOT an acceptable solution

  • Profile Image
    gerardw
    Answered on June 24, 2020 at 02:36 AM

     Hello,

    There's actually no API endpoint for automatic PDF download or for retrieving the actual PDF file but you can construct the PDF link as explained by my colleague above.

    But it will require authentication, else you will get a 404 error. So you will need to remain logged into your Jotform account to download the PDF.

    We also have an option to email Submission PDFs as an attachment: How-To-Include-Submissions-As-PDF-Attachment-In-The-Email-Notifications 

    Other than that, will the option using Google drive or Dropbox be useful to you?   

    You can receive the submission PDFs on your cloud storage, with our Google Drive and Dropbox integrations as well.

  • Profile Image
    brett.crowley
    Answered on June 24, 2020 at 02:41 AM

    I understand there is no API endpoint - given the number of requests you receive for this, one might think it would make sense to add it?

    We cannot turn off authentication

    We are currently making it work with emails however, it's not exactly a clean solution.

    No, that's not useful as you only upload to a personal drive folder rather than a project drive account or shared drive folder which still leaves us with the issue of authenticating to get the file. EDIT:(Obviously it's a google authentication issue then - but is caused by how you save files to drive).

  • Profile Image
    roneet
    Answered on June 24, 2020 at 04:19 AM

    Let me make a feature request to be able to retrieve the submission PDF via Webhook. We cannot provide an ETA to this request. However, we will inform you once we have an update on this.

    If you integrate with Google Drive or Dropbox available at our end then you can keep enabling the security settings. You will still be able to receive the submission PDF.

    1592986699888888888.gif

    You can give a custom name to the folder in the integration as shown above. Then you should be able to receive the PDF report.

    Thanks.

  • Profile Image
    brett.crowley
    Answered on June 24, 2020 at 06:23 PM

    I can't understand why this wouldn't have been a feature request already.

    As mentioned - you only upload to a users drive with no option of using a service account - the subfolder it's stored in is irrelevant as you still need user interaction to download the files.

  • Profile Image
    jonathan
    Answered on June 24, 2020 at 07:28 PM

    We apologize for inconvenience. We have submitted a feature request ticket for Ability to generate the PDF via Webhook already.

    We will notify you here and in your email for any news/updates on the status.