<?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: Update existing property to be unique, need to fetch Deal by custom property in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440656#M43632</link>
    <description>&lt;P&gt;Hi Wendy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The deal ID is "5342463385", the ID you were searching by is the transaction_id property&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 09:57:59 GMT</pubDate>
    <dc:creator>LRamsden</dc:creator>
    <dc:date>2021-05-25T09:57:59Z</dc:date>
    <item>
      <title>Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440444#M43610</link>
      <description>&lt;P&gt;I have created a Deal custom property, `&lt;SPAN&gt;purchase_reference_id`, which I cannot seem to fetch Deals by. I suspect this is because I mistakenly did not set `&lt;/SPAN&gt;&lt;SPAN&gt;hasUniqueValue` to `true`. However, it does not seem that I can update the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hasUniqueValue, presumably because the property already exists, and I cannot delete and recreate the property because properties seem to only soft delete. Can somebody from HubSpot please help me rectify this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please note that this is a test account and so I can easily remove this property so that it is not used in any Deals - the issue is that while API requests to update the hasUniqueValue property succeed, they don't seem to actually change anything.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-05-24 at 20.37.38.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/43140iF86E94537EC51742/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-05-24 at 20.37.38.png" alt="Screenshot 2021-05-24 at 20.37.38.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-05-24 at 20.37.48.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/43139i10B10A950F8F3510/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-05-24 at 20.37.48.png" alt="Screenshot 2021-05-24 at 20.37.48.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 19:52:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440444#M43610</guid>
      <dc:creator>LRamsden</dc:creator>
      <dc:date>2021-05-24T19:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440636#M43627</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192619"&gt;@LRamsden&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To start, could you share with me the portal Id in question? When I attempt to locate deal Id&amp;nbsp;&lt;EM&gt;10040947267&lt;/EM&gt; on portal&amp;nbsp;195xxxxx, it doesn't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason I asked for the portal Id is because, I'd like to try updating the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;` property's `hasUniqueValue` to true using the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;Update a property endpoint&lt;/A&gt;. However, if you've already deleted the property, I'd like to try and recreate the property using the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;Create a property endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your screenshots, it looks like you're retrieving the property (as both the method are GET) and not creating it, so I'd like to see if I'm getting any error when attempting to recreate the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;` property.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:54:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440636#M43627</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2021-05-25T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440647#M43628</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192619"&gt;@LRamsden&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To start, could you share with me the portal Id in question? When I attempt to locate deal Id&amp;nbsp;&lt;EM&gt;10040947267&lt;/EM&gt; on portal&amp;nbsp;195xxxxx, it doesn't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason I asked for the portal Id is because, I'd like to try updating the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;` property's `&lt;EM&gt;hasUniqueValue&lt;/EM&gt;` to true using the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;Update a property endpoint&lt;/A&gt;. However, if you've already deleted the property, I'd like to try and recreate the property using the &lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;Create a property endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your screenshots, it looks like you're retrieving the property (as both the method are GET) and not creating it, so I'd like to see if I'm getting any error when attempting to recreate the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;` property.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:41:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440647#M43628</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2021-05-25T09:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440648#M43629</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192619"&gt;@LRamsden&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To start, could you share with me the portal Id in question? When I attempt to locate deal Id&amp;nbsp;&lt;EM&gt;10040947267&lt;/EM&gt; on portal&amp;nbsp;195xxxxx, it doesn’t exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason I asked for the portal Id is because, I’d like to try updating the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;` property’s `hasUniqueValue` to true using the &lt;A href="“https://developers.hubspot.com/docs/api/crm/properties”" target="“_blank”" rel="“noopener”"&gt;Update a property endpoint&lt;/A&gt;. However, if you’ve already deleted the property, I’d like to try and recreate the property using the &lt;A href="“https://developers.hubspot.com/docs/api/crm/properties”" target="“_blank”" rel="“noopener”"&gt;Create a property endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your screenshots, it looks like you’re retrieving the property (as both the method are GET) and not creating it, so I’d like to see if I’m getting any error when attempting to recreate the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;` property.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:42:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440648#M43629</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2021-05-25T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440649#M43630</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192619"&gt;@LRamsden&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To start, could you share with me the portal Id in question? When I attempt to locate deal Id&amp;nbsp;&lt;EM&gt;10040947267&lt;/EM&gt; on portal&amp;nbsp;195xxxxx, it doesn’t exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason I asked for the portal Id is because, I’d like to try updating the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;` property’s `hasUniqueValue` to true using the &lt;A href="“https://developers.hubspot.com/docs/api/crm/properties”" target="“_blank”" rel="“noopener”"&gt;Update a property endpoint&lt;/A&gt;. However, if you’ve already deleted the property, I’d like to try and recreate the property using the &lt;A href="“https://developers.hubspot.com/docs/api/crm/properties”" target="“_blank”" rel="“noopener”"&gt;Create a property endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your screenshots, it looks like you’re retrieving the property (as both the method are GET) and not creating it, so I’d like to see if I’m getting any error when attempting to recreate the `&lt;STRONG&gt;&lt;SPAN&gt;purchase_reference_id&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;` property.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:44:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440649#M43630</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2021-05-25T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440656#M43632</link>
      <description>&lt;P&gt;Hi Wendy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The deal ID is "5342463385", the ID you were searching by is the transaction_id property&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:57:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/440656#M43632</guid>
      <dc:creator>LRamsden</dc:creator>
      <dc:date>2021-05-25T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/441489#M43714</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192619"&gt;@LRamsden&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the confirmation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On my end, I deleted the property and tried recreating it by sending the following API request:&lt;/P&gt;
&lt;P&gt;POST &lt;A href="https://api.hubspot.com/crm/v3/properties/deals/" target="_blank" rel="noopener"&gt;https://api.hubspot.com/crm/v3/properties/deals/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "groupName": "dealinformation",
"name": "purchase_reference_id",
  "hidden": false,
  "displayOrder": -1,
"hasUniqueValue":true,
  "label": "Purchase Reference ID",
  "type": "string",
  "fieldType": "text",
"description":"The ID that refers to the object in Zilch's systems"}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, I'm seeing the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
status:"error",
message:"Field 'hasUniqueValue' cannot be modified for property 'purchase_reference_id'.",
correlationId:"fe980db6-f74d-4c35-b3f6-1283af63f11e",
propertiesErrorCode:"PROPERTY_INVALID"}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this case, I've reached out to our internal team to check on it and I'll keep you posted here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 05:48:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/441489#M43714</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2021-05-27T05:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing property to be unique, need to fetch Deal by custom property</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/441897#M43757</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/192619"&gt;@LRamsden&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All's set here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've recreated the `purchase_reference_id` property on your portal and set the `hasUniqueValue` value to true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if there are any queries on this!&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 01:48:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Update-existing-property-to-be-unique-need-to-fetch-Deal-by/m-p/441897#M43757</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2021-05-28T01:48:26Z</dc:date>
    </item>
  </channel>
</rss>

