APIs & Integrations

NParimi
メンバー

Deals search api not respecting sort order

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.
0 いいね!
1件の返信
ChehakWadhdwa
メンバー | Diamond Partner
メンバー | Diamond Partner

Deals search api not respecting sort order

Hey @NParimi

 

Can you change the operator to EQ

 

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

0 いいね!