APIs & Integrations

coolbublik
Member

Re: Hello and welcome to your new Developer Forum

SOLVE

hi! Please, could anybody  help me to pull all history data out Hubspot using node js doing so , I get only Amount history Data
I need dealstage, closedate as well

const dealsResponse = await hubspot.deals.get(
{
properties: ['dealname', 'closedate', 'createdate', 'dealstage', 'amount'],
propertiesWithHistory: ['Closedate'],
propertiesWithHistory: ['Dealstage'],
propertiesWithHistory: ['Dealname'],
propertiesWithHistory: ['Amount']

});

 

0 Upvotes
1 Accepted solution
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Re: Hello and welcome to your new Developer Forum

SOLVE

Hey @coolbublik,

 

On my end, when testing this out with the following request url:

GET deals/v1/deal/paged?propertiesWithHistory=dealstage&propertiesWithHistory=dealname&propertiesWithHistory=closedate&propertiesWithHistory=amount

 

I'm able to see all the properties history (if any) for all the deals. In this case, could you try running this request on Postman and let me know if you're still not seeing the properties with history?

View solution in original post

0 Upvotes
4 Replies 4
WendyGoh
HubSpot Employee
HubSpot Employee

Re: Hello and welcome to your new Developer Forum

SOLVE

Hey @coolbublik,

 

Just to clarify, are you using the Get all deals endpoint to retrieve deals object and had like to get the properties history of: dealstage, closedate, dealname, amount and createdate? 

 

However, are you only seeing the property history of amount but not the other properties? If so, could you share with me the portal ID in question and a sample deal? 

0 Upvotes
coolbublik
Member

Re: Hello and welcome to your new Developer Forum

SOLVE

hi!yes I'm using Get all deals endpoint
Id = 7967085

there are 3 test deals test 1 test 2 test 3 and take a look at all of them.
They all have 'history' data.
Or at least test 1.
Thank you

0 Upvotes
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Re: Hello and welcome to your new Developer Forum

SOLVE

Hey @coolbublik,

 

On my end, when testing this out with the following request url:

GET deals/v1/deal/paged?propertiesWithHistory=dealstage&propertiesWithHistory=dealname&propertiesWithHistory=closedate&propertiesWithHistory=amount

 

I'm able to see all the properties history (if any) for all the deals. In this case, could you try running this request on Postman and let me know if you're still not seeing the properties with history?

0 Upvotes
coolbublik
Member

Re: Hello and welcome to your new Developer Forum

SOLVE

thanks,  now it works.

0 Upvotes