<?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 Enroll Custom Object Into Workflow API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111554#M80449</link>
    <description>&lt;P&gt;Is there an API that will allow me to enroll a custom object into a workflow?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 20:09:21 GMT</pubDate>
    <dc:creator>AAdamonis</dc:creator>
    <dc:date>2025-02-19T20:09:21Z</dc:date>
    <item>
      <title>Enroll Custom Object Into Workflow API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111554#M80449</link>
      <description>&lt;P&gt;Is there an API that will allow me to enroll a custom object into a workflow?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 20:09:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111554#M80449</guid>
      <dc:creator>AAdamonis</dc:creator>
      <dc:date>2025-02-19T20:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enroll Custom Object Into Workflow API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111589#M80452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/509746"&gt;@AAdamonis&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I am aware, you can only enroll contact objects via API through the &lt;A href="https://developers.hubspot.com/docs/reference/api/automation/create-manage-workflows/v2#enroll-a-contact-into-a-workflow" target="_blank" rel="noopener"&gt;older (v2) workflows API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For custom objects, your best bet would be to set up a custom property (i.e.&amp;nbsp;"enroll_x_workflow") and a workflow based on a custom object property change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could then use the &lt;A href="https://developers.hubspot.com/docs/reference/api/crm/objects/objects#patch-%2Fcrm%2Fv3%2Fobjects%2F%7Bobjecttype%7D%2F%7Bobjectid%7D" target="_blank" rel="noopener"&gt;CRM Objects API&lt;/A&gt; to update the property to "Yes", for example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PATCH
https://api.hubapi.com/crm/v3/objects/{objectType}/{objectId}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would then trigger the workflow to enroll the custom object that had the property changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:24:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111589#M80452</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-02-19T21:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Enroll Custom Object Into Workflow API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111684#M80460</link>
      <description>&lt;P&gt;I am using that older endpoint to enroll contacts in another program.&amp;nbsp; I was hoping maybe there is a newer one that I am not finding that will handle custom objects.&amp;nbsp; The process I am working on allows the user to select from quite a few workflows and I did not want to add a new property for each one.&amp;nbsp; My other thought was to maybe try to add the objects to specific lists and use that as the trigger.&amp;nbsp; Seems like overkill also though.&amp;nbsp; Thanks for the reply!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 01:08:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1111684#M80460</guid>
      <dc:creator>AAdamonis</dc:creator>
      <dc:date>2025-02-20T01:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enroll Custom Object Into Workflow API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1112701#M80491</link>
      <description>&lt;P&gt;Have you considered setting up a Workflow that uses a Webhook as an enrollment trigger? You can post the hs_object_id into this workflow and then have this workflow enroll into another one that does the work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done something similar to have a single stream that works on multiple objects without having to go into Custom Coded Actions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workflow 1: Form Submission. At the end of the form submission, it posts the company hs_object_id to a Webhook via the Webhook action&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workflow 2: Triggers on Webhook (Company Object). I can use this as a middle man workflow and push it to another workflow (that might be used for many things or has it's own criteria for enrollment) or just have stuff be done here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workflow X: Normal enrollment criteria. WF2 can manually enroll companies into this via the Workflow Enrollment action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can be a bit of a pain to set up but you wouldn't have to deal with properties change trigger.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:44:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Enroll-Custom-Object-Into-Workflow-API/m-p/1112701#M80491</guid>
      <dc:creator>MichaelMa</dc:creator>
      <dc:date>2025-02-21T18:44:29Z</dc:date>
    </item>
  </channel>
</rss>

