APIs & Integrations

floeru82
Contributor

get_recently_updated_contact does not include all changes

Hi Hubspot Community...

 

We are faceing a problem with the API function https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts

 

Even if you go trough all the results like explained in the documentation with vid-offset and time-offset, this function will not get back all changed records.

A specific sample could be find in the code sample below.

 

To get a feeling for the whole dimension:

After initial importing 170’120 contacts, 28’083 contacts never show up while using this “get_recently_update_contact” endpoint.

 

it looks that this problem exists since a long time and was reported for exemple already here https://integrate.hubspot.com/t/get-recently-updated-contacts-is-bugged/5981/3 (point 4) - but it still exists.

 

sample:

https://api.hubapi.com/contacts/v1/contact/vid/277459/profile?property=lastmodifieddate&hapikey='"$h..." [^]

shows in account 5587167

{
...
"properties": {
"lastmodifieddate": {
"value": "1555343317437"
}
},
"vid": 277459
}

BUT

https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?propertyMode=value_and_his..." [^]


{
"contacts": [
...,
{
...,
"properties": {
"lastmodifieddate": {
"value": "1555343317439"
...
}
},
"vid": 277463
},
{
...,
"properties": {
"lastmodifieddate": {
"value": "1555343317437"
...
}
},
"vid": 276928
},
{
...,
"properties": {
"lastmodifieddate": {
"value": "1555343317437",
...
}
},
"vid": 277335
}
],
"has-more": true,
"time-offset": 1555343317437,
"vid-offset": 277335
}

AND

https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?propertyMode=value_and_his..." [^]


{
"contacts": [
{
...,
"properties": {
"lastmodifieddate": {
"value": "1555343317429"
...
}
},
"vid": 276230
},
...
],
...
}

==> Contact with vid 277459 never shows up!!!

 

we are now looking for solutions, workarounds etc... how did other api users solve this?

 

florian

0 Upvotes
2 Replies 2
IsaacTakushi
HubSpot Employee
HubSpot Employee

get_recently_updated_contact does not include all changes

Welcome, @floeru82.

 

It looks like contact 277459 no longer exists in account 5587167. Would you provide another example for me to investigate?

Isaac Takushi

Associate Certification Manager
0 Upvotes
floeru82
Contributor

get_recently_updated_contact does not include all changes

he isaac

 

thanks for your reply. you're right, the contact from the sample not exist at the moment because we made an other test and for that we deleted all data.

here are a some actual contact ids with the same problem (still on account 5587167)

 

1646156

1646201

1629851

1629135

1629072

1628837

1629115

1628975

1628875

1628501

1619216

 

regarding the last vid from the list above another detail sample:

 

 

Example in Account 5587167:

 

VID 1619216 is returned in query 1 but not in queries 2 or 3.

 

Query 1: 'https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?count=4&property=lastmodif..."

 

{

   "contacts": [

      { 

         "addedAt": 1558020506860,

         "canonical-vid": 1618933,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020506860"

            }

         },

         "vid": 1618933

      },

      {

         "addedAt": 1558020506860,

         "canonical-vid": 1619209,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020506860"

            }

         },

         "vid": 1619209

      },

      {

         "addedAt": 1558020506860,

         "canonical-vid": 1619216,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020506860"

            }

         },

         "vid": 1619216

      },

      {

         "addedAt": 1558020499740,

         "canonical-vid": 1618919,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020499740"

            }

         },

         "vid": 1618919

      }

   ],

   "has-more": true,

   "time-offset": 1558020499740,

   "vid-offset": 1618919

}

 

Query 2: 'https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?count=2&property=lastmodif..."

 

{

   "contacts": [

      {

         "addedAt": 1558020506860,

         "canonical-vid": 1618933,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020506860"

            }

         },

         "vid": 1618933

      },

      {

         "addedAt": 1558020506860,

         "canonical-vid": 1619209,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020506860"

            }

         },

         "vid": 1619209

      }

   ],

   "has-more": true,

   "time-offset": 1558020506860,

   "vid-offset": 1619209

}

 

Query 3: 'https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?count=2&property=lastmodif..."

 

{

   "contacts": [

      {

         "addedAt": 1558020499740,

         "canonical-vid": 1618919,

         ...

         "properties": {

            "lastmodifieddate": {

               "value": "1558020499740"

            }

         },

         "vid": 1618919

      }

   ],

   "has-more": true,

   "time-offset": 1558020499740,

   "vid-offset": 1618919

}

0 Upvotes