<?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 How can we custom a ticket property to store json string? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/319239#M30636</link>
    <description>&lt;P&gt;When we use api to create a ticket, the kwargs is contain json string, so we want custom a property to store the json string, but how can we achieve ?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 06:23:27 GMT</pubDate>
    <dc:creator>zosionlee</dc:creator>
    <dc:date>2020-02-14T06:23:27Z</dc:date>
    <item>
      <title>How can we custom a ticket property to store json string?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/319239#M30636</link>
      <description>&lt;P&gt;When we use api to create a ticket, the kwargs is contain json string, so we want custom a property to store the json string, but how can we achieve ?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 06:23:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/319239#M30636</guid>
      <dc:creator>zosionlee</dc:creator>
      <dc:date>2020-02-14T06:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can we custom a ticket property to store json string?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/319612#M30691</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119924"&gt;@zosionlee&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When looking to store JSON string to a custom property, you can do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a custom property with 'Multi-line text' field type&lt;/P&gt;
&lt;P&gt;2. Escaped the json string e.g.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{name: \"John\", age: 31, city: \"New York\"};&lt;/PRE&gt;
&lt;P&gt;3. Send the escaped json string as the value e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[
  {
    "name": "subject",
    "value": "feb test ticket"
  },
  {
    "name": "content",
    "value": "Here are the details of the ticket."
  },
  {
    "name": "hs_pipeline",
    "value": "0"
  },
  {
    "name": "hs_pipeline_stage",
    "value": "1"
  },
{
"name": "testtostorejsonstring",
"value": "{name: \"John\", age: 31, city: \"New York\"};"

}
]
&lt;/PRE&gt;
&lt;P&gt;I have tested it out and it works. Let me know if this works for you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 01:58:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/319612#M30691</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-02-17T01:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can we custom a ticket property to store json string?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/322984#M31112</link>
      <description>&lt;P&gt;Thand you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 02:13:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-we-custom-a-ticket-property-to-store-json-string/m-p/322984#M31112</guid>
      <dc:creator>zosionlee</dc:creator>
      <dc:date>2020-03-02T02:13:37Z</dc:date>
    </item>
  </channel>
</rss>

