APIs & Integrations

gjm222
Member

Setting a deal number type property to "blank" from update api

SOLVE

Hello,

How can I set a number type property to a blank or null state from the basicapi.update api?  It can be set this way using UI but I can't seem to find a way to do it from the api.  A string value can be blanked by sending and empty string but I don't know how to 'blank' number. Sending null does not work.

 

//This does not work..leaves the value
let properties = {"jobnumber" : null}; 

let SimplePublicObjectInput = { properties };    
    
//Call hubspot deal propetry update api for job number                
let apiResponseU = 
       await hubspotClient.crm.deals.basicApi.update(dealId, 
                                        SimplePublicObjectInput);

 

0 Upvotes
1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Setting a deal number type property to "blank" from update api

SOLVE

Hello, @Jaycee_Lewis and @gjm222,

 

So @gjm222 you can send a blank string( ' ' like this) in the number property's value which will update the property with a blank value. I have done the same thing earlier and it worked perfectly for me.

 

Hope this will help you out!

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

0 Upvotes
2 Replies 2
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Setting a deal number type property to "blank" from update api

SOLVE

Hello, @Jaycee_Lewis and @gjm222,

 

So @gjm222 you can send a blank string( ' ' like this) in the number property's value which will update the property with a blank value. I have done the same thing earlier and it worked perfectly for me.

 

Hope this will help you out!

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Setting a deal number type property to "blank" from update api

SOLVE

Hey,  @gjm222  Thanks for the great question! 👋. Let's see if our community has any suggestions for us – @Gonzalo or @himanshurauthan do you have any insight for @gjm222?

 

Thank you! – Jaycee 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes