Scheduling a meeting via API does not change contact's next activity date

Hello!

The default fields documentation states

Next activity date: […] This is set automatically […] based on user actions in the contact record. This includes logging […] meeting, scheduling a future meeting, or scheduling a task to be completed in the future. Emails and tasks scheduled in a sequence do not update this property.

When I create a future meeting via API, this field does not seem to be updated.

Is this the expected behavior? If so, what can I do so it is updated?

Hi @fonji,

It is not expected behaviour and the “Next Activity Date” should be updated accordingly. I am unable to replicate this behaviour and the contacts “Next Activity Date” property is updated to reflect the data included when I create the meeting. See my request and output below for reference:

POST https://api.hubapi.com/crm/v3/objects/meetings
BODY
{
 "properties": {
 "hs_timestamp": "2023-08-08T09:30:00.000Z",
 "hubspot_owner_id": "1147024111",
 "hs_meeting_title": "Intro meeting",
 "hs_meeting_body": "The first meeting to discuss options",
 "hs_internal_meeting_notes": "These are the meeting notes",
 "hs_meeting_external_url": "https://Zoom.com/0000",
 "hs_meeting_location": "Remote",
 "hs_meeting_start_time": "2023-08-08T09:30:00.000Z",
 "hs_meeting_end_time": "2023-08-08T10:30:00.000Z",
 "hs_meeting_outcome": "SCHEDULED"
 },
 "associations": [
 {
 "to": {
 "id": "101"
 },
 "types": [
 {
 "associationCategory": "HUBSPOT_DEFINED",
 "associationTypeId": "200"
 }
 ]
 }
 ]
}

and when I check the contact in the CRM I see the following:

If you are able to share the body of your request I can help troubleshoot further but as mentioned what you are experiencing is not expected!

Thank you very much!

I just re-checked the code and the main difference is in the association:

We currently create the meeting without associations, and then use

/crm/v3/objects/meetings/:meeting_id/associations/Contact/:contact_id/meeting_event_to_contact

to associate it to the contact.

So may be that’s the cause. I’ll run some more tests and will update then.

Sounds good, let me know how you get on! :+1: