We have a workflow that includes a workflow and works flawlessly (query on companies).
The API called is (but this is not so relevant). The major issue where can I have an overview of the differrences between the different version for a specific call.
// Create search criteria
const filter1 = { propertyName: ‘kunnr__c’, operator: ‘EQ’, value: soldto }
const filter2 = { propertyName: ‘sales_organization__c’, operator: ‘EQ’, value: soldtoorganisation }
const filterGroup = { filters: [filter1,filter2] }
const sort = JSON.stringify({ propertyName: ‘createddate_sap__c’, direction: ‘DESCENDING’ })
const properties = [‘createddate_sap__c’]
const limit = 1
const after = 0
const searchCriteria = {
filterGroups: [filterGroup],
sorts: [sort],
properties,
limit,
after
}
hubspotClient.crm.companies.searchApi.doSearch(searchCriteria).then(searchCompanyResponse =>
The custom code is written in node v16 on hubspot client v3 and indeed finds a company in line with the query
When I copy the same code in a new workflow also using hubspot client v3 with the same values no company is any longer found
CollectionResponseWithTotalSimplePublicObject {
total: undefined,
results: undefined,
paging: undefined
} error
As the node version and client are the same I would imagine that it would also return a result.