<?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: Workflow Custom Code Write to Contact Property in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915715#M70782</link>
    <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/348598"&gt;@isabeli&lt;/a&gt;&lt;/SPAN&gt;. Thanks for your question. An easy way to test this is to use the on-page &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank"&gt;PATCH example here&lt;/A&gt; (endpoints tab) and use the Python example. This should give you something to take and modify for use in your custom coded workflow action. Additionally, if you have already tried to send a similar request, can you share it along with the error being returned, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 21:10:50 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2024-02-01T21:10:50Z</dc:date>
    <item>
      <title>Workflow Custom Code Write to Contact Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915137#M70758</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to write to a Contact property when using the Custom Code in Worflows? I'm using Python. If so, could someone please point me to the documentation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking it should look something like this, but with "update" instead of "get_by_id":&amp;nbsp;&lt;/P&gt;&lt;P&gt;hubspot.crm.contacts.basic_api.get_by_id(hs_contact_id, properties=["phone"])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 00:42:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915137#M70758</guid>
      <dc:creator>isabeli</dc:creator>
      <dc:date>2024-02-01T00:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Custom Code Write to Contact Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915715#M70782</link>
      <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/348598"&gt;@isabeli&lt;/a&gt;&lt;/SPAN&gt;. Thanks for your question. An easy way to test this is to use the on-page &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank"&gt;PATCH example here&lt;/A&gt; (endpoints tab) and use the Python example. This should give you something to take and modify for use in your custom coded workflow action. Additionally, if you have already tried to send a similar request, can you share it along with the error being returned, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 21:10:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915715#M70782</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-02-01T21:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Custom Code Write to Contact Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915758#M70787</link>
      <description>&lt;P&gt;Thank you for pointing me to that endpoint! That helped a lot. Here's what ended up working for me:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  hubspot.crm.contacts.basic_api.update(
    hs_contact_id, 
    {
      "properties": {
        "gclid": "test_gclid",
      }
    }
  )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;hs_contact_id = Record ID&lt;/LI&gt;&lt;LI&gt;gclid is the name of the property I updated&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;test_gclid is the valid that I set gclid to&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 01 Feb 2024 22:18:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915758#M70787</guid>
      <dc:creator>isabeli</dc:creator>
      <dc:date>2024-02-01T22:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Custom Code Write to Contact Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915789#M70789</link>
      <description>&lt;P&gt;Fantastic! Thank you very much for sharing what worked. Have fun coding! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 23:06:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/915789#M70789</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-02-01T23:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Custom Code Write to Contact Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/961791#M72813</link>
      <description>&lt;P&gt;but if we are using multiple Property IDs, how do we define which is the correct record ID?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 11:57:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/961791#M72813</guid>
      <dc:creator>MMatos2</dc:creator>
      <dc:date>2024-04-17T11:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Custom Code Write to Contact Property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/970730#M73313</link>
      <description>&lt;P&gt;I am trying to do the same thing here, but it's not working for me.&amp;nbsp; Is this the whole code?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 23:30:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflow-Custom-Code-Write-to-Contact-Property/m-p/970730#M73313</guid>
      <dc:creator>NNelson9</dc:creator>
      <dc:date>2024-05-02T23:30:35Z</dc:date>
    </item>
  </channel>
</rss>

