Update existing property to be unique, need to fetch Deal by custom property
lösung
I have created a Deal custom property, `purchase_reference_id`, which I cannot seem to fetch Deals by. I suspect this is because I mistakenly did not set `hasUniqueValue` to `true`. However, it does not seem that I can update the 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?
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.
To start, could you share with me the portal Id in question? When I attempt to locate deal Id 10040947267 on portal 195xxxxx, it doesn’t exist.
The reason I asked for the portal Id is because, I’d like to try updating the `purchase_reference_id` property’s `hasUniqueValue` to true using the Update a property endpoint. However, if you’ve already deleted the property, I’d like to try and recreate the property using the Create a property endpoint.
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 `purchase_reference_id` property.
To start, could you share with me the portal Id in question? When I attempt to locate deal Id 10040947267 on portal 195xxxxx, it doesn’t exist.
The reason I asked for the portal Id is because, I’d like to try updating the `purchase_reference_id` property’s `hasUniqueValue` to true using the Update a property endpoint. However, if you’ve already deleted the property, I’d like to try and recreate the property using the Create a property endpoint.
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 `purchase_reference_id` property.
To start, could you share with me the portal Id in question? When I attempt to locate deal Id 10040947267 on portal 195xxxxx, it doesn't exist.
The reason I asked for the portal Id is because, I'd like to try updating the `purchase_reference_id` property's `hasUniqueValue` to true using the Update a property endpoint. However, if you've already deleted the property, I'd like to try and recreate the property using the Create a property endpoint.
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 `purchase_reference_id` property.
To start, could you share with me the portal Id in question? When I attempt to locate deal Id 10040947267 on portal 195xxxxx, it doesn't exist.
The reason I asked for the portal Id is because, I'd like to try updating the `purchase_reference_id` property's `hasUniqueValue` to true using the Update a property endpoint. However, if you've already deleted the property, I'd like to try and recreate the property using the Create a property endpoint.
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 `purchase_reference_id` property.