APIs & Integrations

Yel-o
Contributor

Get recently modified entries from a custom object

SOLVE

Hi there, 

 

Just as the subject says, I read that we have to use the Search to sort by their last modified date. We're looking to see if I can set a value to the last modified date like get the results of those last modified in the last hour or so. Is that possible? This is currently what I have written in Postman.

 

Yelo_1-1638909766304.png

 

 

 

 

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Get recently modified entries from a custom object

SOLVE

@Yel-o  👋

You should be able to do this.  Make sure you convert your timestamp to a unix timestamp format in milliseconds.

Here is an example json body

{
    "filters": [
        {
            "value": "1638981000000",
            "propertyName": "hs_lastmodifieddate",
            "operator": "GT"
        }
        
    ]
}

View solution in original post

0 Upvotes
2 Replies 2
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Get recently modified entries from a custom object

SOLVE

@Yel-o  👋

You should be able to do this.  Make sure you convert your timestamp to a unix timestamp format in milliseconds.

Here is an example json body

{
    "filters": [
        {
            "value": "1638981000000",
            "propertyName": "hs_lastmodifieddate",
            "operator": "GT"
        }
        
    ]
}
0 Upvotes
Yel-o
Contributor

Get recently modified entries from a custom object

SOLVE

Thank you, dennisedson! Can't believe it was that easy. That worked perfectly