It's the first thing I tried, but those forms are not retrieved via the forms API. I guess it's because they are created in LinkedIn and then fetched by Hubspot.
Note: This endpoint can only be used to get submissions for the following form types:
HUBSPOT - HubSpot marketing forms
FLOW - HubSpot pop-up forms (formally lead flows)
CAPTURED - Data collected for non-HubSpot forms
I am guessing your form would be classified as "CAPTURED" and should still qualify.
Have you tried to use the API endpoint with a different form just to make sure you have the API call set up correctly or that it works in your portal in general?
✔️ Did this post help answer your query? Help the community by marking it as a solution.
It should work, but this is what I get when trying to call the API :
{"message":"Submissions can't be exported for this form.","errorType":"FORM_TYPE_NOT_ALLOWED","correlationId":"0a3f2597-83fb-4c40-b971-ec9a92acd7e4"}
And furthermore, I need the form_guid in order to make the API call. For the regular forms, to get the submissions, I first use the forms endpoint to get a list of all my forms ids, and then I loop on the ids to get the submissions form by form.
But the LGF forms don't get returned from the forms API. I could find a workaround by looping on them manually, but that would mean having to maintain an up to date list of all our LGF forms.
{"status":"error","message":"The FormDefinition f38a6749-6359-464a-a3e2-46975863cac0 does not exist.","correlationId":"b23613d2-f859-4be3-9875-09295aeb3c87","context":{"id":["f38a6749-6359-464a-a3e2-46975863cac0"]},"category":"OBJECT_NOT_FOUND"}
I thought maybe I had the wrong ID but no, because if I input a random string I get this :
{"status":"error","message":"The form ID isn't valid. Please check the form ID and try again.","correlationId":"6a197f38-b9bc-45ca-af2f-2736783d29d5","context":{"id":["f38a6-6359-464a-a3e2-46975863cac0"]},"category":"VALIDATION_ERROR","subCategory":"FormError.FORM_ID_INVALID"}
So I guess what I'm trying to do is just not possible.