Hi Sheena,
It appears that Passthrough is enabled on the form, which will prevent us from being able to retrieve the images after the form has been processed. You can find more details about Passthrough here:
https://docs.truecontext.com/1374411/Content/ProntoFormsSecurityandCompliance/217499888DataPassthrough.html?Highlight=passthrough
If Passthrough is required, I recommend configuring a data destination to store the images/attachments outside of the TrueContext platform (e.g., SharePoint, Amazon S3, FTP server, or a webserver via the HTTP Data destination), from which you can later retrieve them.
Cheers,
------------------------------
Scott Daly
Senior Manager, Implementation Services
TrueContext
------------------------------
Original Message:
Sent: 09-16-2024 18:08
From: Sheena Yadav
Subject: Get Images from an "Image" Type From Question from a Submitted Form Submission
Hi Scott,
Thank you for your response. I am working with Tanner on the same project and I tried setting up the api above to retrieve image data. I am running into the following 404 error though:
Your API call resulted in an error. Please see the HTTP Headers for details. Error message: Passthrough Data Not Saved: Passthrough data is not saved, and cannot be retrieved.
Any ideas why this might be? I've tried a couple identifiers now and I get the same error.
------------------------------
Sheena Yadav
Software Developer
Punchcard
------------------------------
Original Message:
Sent: 09-09-2024 09:29
From: Scott Daly
Subject: Get Images from an "Image" Type From Question from a Submitted Form Submission
Hi Tanner,
We do have a REST API endpoint available which would allow you to fetch a specific image/attachment from a form submission.
Retrieve a Form Submission attachment
Using the example json you shared above, the request would be something like (replacing dataId with your specific form submission ID, which will look something like 18379191234):
https://api.prontoforms.com/api/1.1/data/{dataId}/attachments/31eef693-174e-41f8-9836-0c9310c6f43f
Alternatively, you can configure an additional HTTP FileUpload Data Destination on the form to have the photos sent to your webserver or location of your choosing at the time the form submission is processed. You can configure the naming convention used so that you can easily find/reference it later.
Hope this helps!
------------------------------
Scott Daly
Senior Manager, Implementation Services
TrueContext