<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Code Action for Form Submission in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/1111032#M80435</link>
    <description>&lt;P&gt;I agree with the poster. I am having the same issue. I am trying to use custom code to register attendees to a marketing avent that have already had a form submission go through as we didn't have the workflow created prior to this form going live so I am trying to get the form submission date to be the same as the registration date but I cannot seem to find a way to pull the form submission date?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 01:12:36 GMT</pubDate>
    <dc:creator>MLBurg</dc:creator>
    <dc:date>2025-02-19T01:12:36Z</dc:date>
    <item>
      <title>Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994228#M74398</link>
      <description>&lt;P&gt;Dear HubSpot Community,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a form that includes custom fields such as property name, address, along with standard fields like email and name. Upon form submission, I aim to use custom code to achieve the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Read the form submission data.&lt;/LI&gt;&lt;LI&gt;Use the custom properties to create a custom object in HubSpot.&lt;/LI&gt;&lt;LI&gt;Associate this custom object with the contact, using a specific label.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;However, after reviewing the available options, it appears that there is no straightforward way to add a custom code action for form submissions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could anyone guide me on how to implement this functionality? Your assistance would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Ali&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 07:16:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994228#M74398</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2024-06-19T07:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994475#M74420</link>
      <description>&lt;P&gt;Someone will correct me if I am wrong but I don't think it is possible to trigger a workflow on a form submission.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:31:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994475#M74420</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2024-06-19T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994479#M74423</link>
      <description>&lt;P&gt;We can trigger a workflow; that's possible. However, the issue I'm facing is that I want to read the form submission data and use custom code to perform manual tasks, such as associations.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:36:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994479#M74423</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2024-06-19T14:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994490#M74426</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/490980"&gt;@AliFawadHassan&lt;/a&gt;&amp;nbsp;- I'm sure there must be something missing in the problem description here. The mechanisms I use regularly in (apparently) the same situation is to define the form around the custom object properties, trigger a workflow on submission (or value 'known') and then use custom code workflow steps to manioulate the properties and associate records together. This all works very effectively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are we missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:53:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994490#M74426</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-06-19T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994525#M74430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;How can i read the form submission data, that i can use in my custom code ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AliFawadHassan_0-1718811295341.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/120077i95D630621C57BD31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AliFawadHassan_0-1718811295341.png" alt="AliFawadHassan_0-1718811295341.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 15:35:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994525#M74430</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2024-06-19T15:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994548#M74434</link>
      <description>&lt;P&gt;This is where I think there must be a miscommunication - if some of the properties of the custom object are set using form fields, then after form submission you should be able to refrence those directly. For example you could use them as input variables for the custom code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checking that we are getting closer...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 15:57:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994548#M74434</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-06-19T15:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994821#M74444</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp; There is no unique field that I can refer to in the custom object, and as you can see, I'm unable to get any form data. If I get the submission ID, I will easily get the data through the API, but I'm unable to get any data from the form submission trigger.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/120114i0754F2AB5ADAEE07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 07:21:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/994821#M74444</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2024-06-20T07:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/995000#M74463</link>
      <description>&lt;P&gt;One last try on this - again I feel there are some drossed wires.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the form you have constructed is submitted, the data collected by the form fields are already in the record created by the form submission. This is true for contact objects or custom objects.&lt;/P&gt;
&lt;P&gt;So if you have defined custom contact properties as described in your original question - such as 'property name' - and included them as fields on the form being filled then those propoerty values are directly accessible in the contact workflow triggered by the submit action. You can pass them as input parameters to your custom code workflow step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to reference any action properties - that seems like a red herring to be honest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, if you have defined a custom object - example MyObject with properties CustomA, CustomB, CustomC - then you can include those properties, if required, on the same form. This would additionally enable you to construct a MyObject type workflow with a trigger such as CustomA is known. When that type of workflow executes, the property values from the form fill are directly accessible - again you can pass them as input parameters to your custom code workflow step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is useful to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 13:23:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/995000#M74463</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-06-20T13:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Action for Form Submission</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/1111032#M80435</link>
      <description>&lt;P&gt;I agree with the poster. I am having the same issue. I am trying to use custom code to register attendees to a marketing avent that have already had a form submission go through as we didn't have the workflow created prior to this form going live so I am trying to get the form submission date to be the same as the registration date but I cannot seem to find a way to pull the form submission date?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 01:12:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Code-Action-for-Form-Submission/m-p/1111032#M80435</guid>
      <dc:creator>MLBurg</dc:creator>
      <dc:date>2025-02-19T01:12:36Z</dc:date>
    </item>
  </channel>
</rss>

