Hello,
I am consuming Deals search api v3. Here is my query:
client.crm.deals.searchApi.doSearch(
{ filterGroups: [{ filters: [{ operator:‘GTE’, propertyName:‘closedate’, value: (new Date).getTime().toString()}] }],
sorts: [JSON.stringify({ propertyName: ‘hs_lastmodifieddate’, direction: ‘DESCENDING’ })], properties: [‘amount’, ‘dealname’, ‘dealstage’, ‘closedate’, ‘createdate’,‘dealname’, ‘dealstage’, ‘hs_lastmodifieddate’, ‘hubspot_owner_id’, ‘pipeline’, ‘id’, ‘associations’],
limit: 50, after: 0 })
I am not getting the results sorted by last modified date. The order is random.