I integrated HubSpot into our application via the nodejs library. In order to test the integration, i had the following simple setup:
1. Create a new object
const { id } = await hubspotClient.crm.objects.basicApi.create(objectTypeId, {
properties: {
name,
customid,
}});
2. Retrieve object
const subscriptions = await hubspotClient.crm.objects.searchApi.doSearch(objectTypeId, {
filterGroups: [{
filters: [{
propertyName: ‘customid’,
operator: ‘EQ’,
value: customid,
}],
}],
limit: 1,
after: 0,
sorts: [],
properties: [‘name’, ‘customid’],
});
But the resulting page is empty. Only if I run add a 3sec delay on the second request I get a result.
Is this a generall limitation of the API or could this be related to our instance still being in trial? Or is there some other fix for this?