APIs & Integrations

JLegere
Participant

Meetings "Organized By"

SOLVE

I am trying to create a report of meetings that were set by our SDR. In the CRM, there are two fields: Organized By, and Assigned To. 

In the API, it seems to only have Assigned To. 

 

'hubspot_owner_id' gives me the 'Assigned To'

'hs_created_by_user_id' gives me a number that is not associated with any user, i'm guessing this is indicating the method that the meeting was booked (i.e. in CRM vs scheduling page)

 

Are there other properties I could try?

 

I am using the endpoint crm/v3/objects/meetings/search to pull all meetings between two dates. 

 

 

0 Upvotes
1 Accepted solution
zach_threadint
Solution
Guide

Meetings "Organized By"

SOLVE

Hi @JLegere 👋

 

I might be way off base here, but I think you will in fact want to use the "hs_created_by_user_id" property. There might be a point of confusion here in that HubSpot Users (or "Owners" as they are referred to in the API docs) have 2 different IDs:

  1. Owner ID
  2. User ID

As far as I can tell, "Meetings" (as a HS Object Type) does not have a property that contains the Owner ID of the HubSpot Owner/User who created the given Meeting. In order to get this "Owner ID", you'll have to make a call to the Owners API, specifying the "idProperty" being used as "userId". For example:

 

GET https://api.hubapi.com/crm/v3/owners/{{USER_ID}}?idProperty=userId

 

The response will give you the "id" of the given Hubspot Owner, which is the "Owner ID" I think you might be looking for.

 

I hope this proves useful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

0 Upvotes
2 Replies 2
zach_threadint
Solution
Guide

Meetings "Organized By"

SOLVE

Hi @JLegere 👋

 

I might be way off base here, but I think you will in fact want to use the "hs_created_by_user_id" property. There might be a point of confusion here in that HubSpot Users (or "Owners" as they are referred to in the API docs) have 2 different IDs:

  1. Owner ID
  2. User ID

As far as I can tell, "Meetings" (as a HS Object Type) does not have a property that contains the Owner ID of the HubSpot Owner/User who created the given Meeting. In order to get this "Owner ID", you'll have to make a call to the Owners API, specifying the "idProperty" being used as "userId". For example:

 

GET https://api.hubapi.com/crm/v3/owners/{{USER_ID}}?idProperty=userId

 

The response will give you the "id" of the given Hubspot Owner, which is the "Owner ID" I think you might be looking for.

 

I hope this proves useful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


0 Upvotes
JLegere
Participant

Meetings "Organized By"

SOLVE

Thank you Zach, you are correct this is the right property to use. I think what threw me off is that it is a different id than what is used in the ownerId field.  

 

It looks like this number is called the 'remoteId' when you pull users from the owners endpoint.