You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sorts parameter of the PublicObjectSearchRequest class (all CRM objects) is mapped to the Open API type list[str]. However, the HubSpot API accepts sorts as an array of objects:
This bit me too, thank you for the solving approach which works!
I wasted time on this trying to pass in a list of serialized JSON strings, e.g.: sort = json.dumps({"propertyName": "lastmodifieddate", "direction": "ASCENDING"}), and then using a list of those...
Wanted to open an issue too, but found yours then.
Additionally it seems that contacts (and it seems only contacts), have the differing propertyName lastmodifieddate instead of hs_lastmodifieddate which other classes have...
The
sorts
parameter of thePublicObjectSearchRequest
class (all CRM objects) is mapped to the Open API typelist[str]
. However, the HubSpot API acceptssorts
as an array of objects:Similar to the
filter_groups
parameter, thesorts
parameter should be mapped to aSort
class with the appropriate attributes.Example:
The text was updated successfully, but these errors were encountered: