Lastmodifieddate - GREAT!

companies
deals
contacts

#1

When requesting the list of Contacts the list includes “lastmodifieddate” for each contact!- Why isn’t this implemented in the request for the list of Companies and the list of Deals??


#2

@HenrikJanningJuul There should be. You might have to ask for it specifically. If you go into your portal on the browser can you not see the two properties?


#3

It’s if I use this call for Deals where the result doesn’t show anything about last modified:

And this call for Companies where the result doesn’t show anything about last modified:

But here I see lastmodifieddate for Contacts:

I do however on the portal for Companies and for Deals see “hs_lastmodifieddate” as a property for each.


#4

@HenrikJanningJuul Can you show me an example of the call you are making? Are you requesting that property? In the get all endpoints it won’t return every property for every object by default but you can request which ones you would like


#5

Well, I actually linked to the calls in the above!
The point is that only the call regarding get all contacts give me a “lastmodifieddate”!

Get all deals return:
https://api.hubapi.com/deals/v1/deal/paged?hapikey=demo&includeAssociations=true&limit=2&properties=dealname

{
“deals”: [
{
“portalId”: 62515,
“dealId”: 18039629,
“isDeleted”: false,
“associations”: {
“associatedVids”: [
393873, 734934
],
“associatedCompanyIds”: [
237892
],
“associatedDealIds”: [

    ]
  },
  "properties": {
    "dealname": {
      "value": "Company",
      "timestamp": 1457040864519,
      "source": "API",
      "sourceId": null,
      "versions": [
        {
          "name": "dealname",
          "value": "Company Name",
          "timestamp": 1457040864519,
          "source": "API",
          "sourceVid": [
            
          ]
        }
      ]
    },
    "num_associated_contacts": {
      "value": "2",
      "timestamp": 0,
      "source": "CALCULATED",
      "sourceId": null,
      "versions": [
        {
          "name": "num_associated_contacts",
          "value": "2",
          "source": "CALCULATED",
          "sourceVid": [
            
          ]
        }
      ]
    }
  },
  "imports": [
    
  ]
},
{
  "portalId": 62515,
  "dealId": 18040854,
  "isDeleted": false,
  "associations": {
    "associatedVids": [
      
    ],
    "associatedCompanyIds": [
      
    ],
    "associatedDealIds": [
      
    ]
  },
  "properties": {
    "dealname": {
      "value": "5678",
      "timestamp": 1457042290572,
      "source": "API",
      "sourceId": null,
      "versions": [
        {
          "name": "dealname",
          "value": "5678",
          "timestamp": 1457042290572,
          "source": "API",
          "sourceVid": [
            
          ]
        }
      ]
    },
    "num_associated_contacts": {
      "value": "0",
      "timestamp": 0,
      "source": "CALCULATED",
      "sourceId": null,
      "versions": [
        {
          "name": "num_associated_contacts",
          "value": "0",
          "source": "CALCULATED",
          "sourceVid": [
            
          ]
        }
      ]
    }
  },
  "imports": [
    
  ]
}

],
“hasMore”: true,
“offset”: 18040854
}

Get all companies return:
https://api.hubapi.com/companies/v2/companies/paged?hapikey=demo&properties=name&properties=website&limit=2

Example Response:
{
“companies”: [
{
“portalId”: 62515,
“additionalDomains”: [

  ],
  "properties": {
    "website": {
      "sourceId": null,
      "timestamp": 1457513066540,
      "versions": [
        {
          "timestamp": 1457513066540,
          "sourceVid": [
            
          ],
          "name": "website",
          "value": "example.com",
          "source": "COMPANIES"
        }
      ],
      "value": "example.com",
      "source": "COMPANIES"
    },
    "name": {
      "sourceId": "name",
      "timestamp": 1464484587592,
      "versions": [
        {
          "name": "name",
          "sourceId": "name",
          "timestamp": 1464484587592,
          "value": "Example Company",
          "source": "BIDEN",
          "sourceVid": [
            
          ]
        }
      ],
      "value": "Example Company",
      "source": "BIDEN"
    }
  },
  "isDeleted": false,
  "companyId": 115200636
},
{
  "portalId": 62515,
  "additionalDomains": [
    
  ],
  "properties": {
    "website": {
      "sourceId": null,
      "timestamp": 1457535205549,
      "versions": [
        {
          "timestamp": 1457535205549,
          "sourceVid": [
            
          ],
          "name": "website",
          "value": "test.com",
          "source": "COMPANIES"
        }
      ],
      "value": "test.com",
      "source": "COMPANIES"
    },
    "name": {
      "sourceId": "name",
      "timestamp": 1468832771769,
      "versions": [
        {
          "name": "name",
          "sourceId": "name",
          "timestamp": 1468832771769,
          "value": "Test Company",
          "source": "BIDEN",
          "sourceVid": [
            
          ]
        }
      ],
      "value": "Test Company",
      "source": "BIDEN"
    }
  },
  "isDeleted": false,
  "companyId": 115279791
}

],
“has-more”: true,
“offset”: 115279791
}

Get all contacts return:
https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2

Example JSON output:
{
“contacts”: [
{
“addedAt”: 1390574181854,
“vid”: 204727,
“canonical-vid”: 204727,
“merged-vids”: [

  ],
  "portal-id": 62515,
  "is-contact": true,
  "profile-token": "AO_T-mMusl38dq-ff-Lms9BvB5nWgFb7sFrDU98e-3CBdnB7G2qCt1pMEHC9zmqSfOkeq2on6Dz72P-iLoGjEXfLuWfvZRWBpkB-C9Enw6SZ-ZASg57snQun5f32ISDfLOiK7BYDL0l2",
  "profile-url": "https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mMusl38dq-ff-Lms9BvB5nWgFb7sFrDU98e-3CBdnB7G2qCt1pMEHC9zmqSfOkeq2on6Dz72P-iLoGjEXfLuWfvZRWBpkB-C9Enw6SZ-ZASg57snQun5f32ISDfLOiK7BYDL0l2/",
  "properties": {
    "firstname": {
      "value": "Bob"
    },
    "lastmodifieddate": {
      "value": "1483461406481"
    },
    "company": {
      "value": ""
    },
    "lastname": {
      "value": "Record"
    }
  },
  "form-submissions": [
    
  ],
  "identity-profiles": [
    {
      "vid": 204727,
      "saved-at-timestamp": 1476768116149,
      "deleted-changed-timestamp": 0,
      "identities": [
        {
          "type": "LEAD_GUID",
          "value": "f9d728f1-dff1-49b0-9caa-247dbdf5b8b7",
          "timestamp": 1390574181878
        },
        {
          "type": "EMAIL",
          "value": "mgnew-email@hubspot.com",
          "timestamp": 1476768116137
        }
      ]
    }
  ],
  "merge-audits": [
    
  ]
},
{
  "addedAt": 1392643921079,
  "vid": 207303,
  "canonical-vid": 207303,
  "merged-vids": [
    
  ],
  "portal-id": 62515,
  "is-contact": true,
  "profile-token": "AO_T-mPMwvuZG_QTNH28c_MbhSyNRuuTNw9I7zJAaMFjOqL9HKlH9uBteqHAiTRUWVAPTThuU-Fmy7IemUNUvdtYpLrsll6nw47qnu7ACiSHFR6qZP1tDVZFpxueESKiKUIIvRjGzt8P",
  "profile-url": "https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mPMwvuZG_QTNH28c_MbhSyNRuuTNw9I7zJAaMFjOqL9HKlH9uBteqHAiTRUWVAPTThuU-Fmy7IemUNUvdtYpLrsll6nw47qnu7ACiSHFR6qZP1tDVZFpxueESKiKUIIvRjGzt8P/",
  "properties": {
    "firstname": {
      "value": "Ff_FirstName_0"
    },
    "lastmodifieddate": {
      "value": "1479148429488"
    },
    "lastname": {
      "value": "Ff_LastName_0"
    }
  },
  "form-submissions": [
    
  ],
  "identity-profiles": [
    {
      "vid": 207303,
      "saved-at-timestamp": 1392643921090,
      "deleted-changed-timestamp": 0,
      "identities": [
        {
          "type": "EMAIL",
          "value": "email_0be34aebe5@abctest.com",
          "timestamp": 1392643921079
        },
        {
          "type": "LEAD_GUID",
          "value": "058378c6-9513-43e1-a13a-43a98d47aa22",
          "timestamp": 1392643921082
        }
      ]
    }
  ],
  "merge-audits": [
    
  ]
}

],
“has-more”: true,
“vid-offset”: 207303
}


#6

@HenrikJanningJuul you need to request the property in your calls.