Does nextPageToken in Get Lead Activities expires after some time?

Anonymous
Not applicable

Does nextPageToken in Get Lead Activities expires after some time? Lets say I get first 300 lead changes and a nextPageToken, Can I store this token in my database and use it to get the next set of records anytime or should I use it within sometime frame ?

Tags (1)
3 REPLIES 3
Kenny_Elkington
Marketo Employee

Strictly speaking, no it doesn't expire, but it's not necessarily a good idea to use it this way.

Anonymous
Not applicable

What is the recommended way to keep track of the records imported so far and import the next set of records with considerable gap in between ?

ActivityDate or ActivityId may be?

Kenny_Elkington
Marketo Employee

Generally using the data of the most recently retrieved activity as a high watermark is the best way.  You can use this to retrieve a new token for subsequent retrievals.