Form Submission GUID As Contact Property

Hi everyone,

When someone submits a hubspot form, they’re redirected to a url that has the submissionGuid string value in it. I’d like to use this id as a contact property but couldn’t find a way of doing it. I thought of inserting it as a hidden field through Google Tag Manager upon form submission but it doesn’t work because the id is generated only when Hubspot receives the submission.

Any way of doing this?

Hi @ihsanmercan
You could accomplish this by retrieving the submissionGuid via the HubSpot API after the form submission.

Here’s one possible approach:

  1. Trigger via workflow or webhook after the form submission event.

    • The trigger should include enough contact or submission details to identify the correct submission later.
  2. Retrieve the submissionGuid using the HubSpot API.

  3. Match the correct submission using the form and contact details you already have.

    • Once identified, extract the corresponding id.
  4. **Write the

id

into the contact record** using a custom-coded workflow action or an external integration (e.g., via a serverless function or middleware script).

  • You can use the CRM API to update the contact property

Note: This form-integrations endpoint is part of HubSpot’s legacy API, and I was unable to find a newer replacement that exposes the same data. It’s a good idea to monitor the Developer Changelogs for updates in case a new version is released or this endpoint is eventually sunset.

Did my post resolve your question? If so, please consider marking it as the accepted solution to help others in the community.

Kind regards
Dennis

Hi @d-lupo, thanks for the very detailed response. I was about to go for it until I’ve found a workflow solution. What I now do is to create a workflow that is triggered upon a form submission. And when the form is submitted, I choose the action to edit a record in contact level. First, I choose a property to edit as seen in the screenshot below and then I choose a value. Right after that, you need to create to “Add data” because the submission id does not appear in the default list. Then choose “Form Submission” object and bingo, you’ll see “Hbase conversion guid” which is the same as form submission id.

This workflow helped me to automatically fill in a contact’s property with the submission guid.