Does nextPageToken in Get Lead Activities expires after some time? | Community
Skip to main content
January 12, 2016
Question

Does nextPageToken in Get Lead Activities expires after some time?

  • January 12, 2016
  • 1 reply
  • 1460 views

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kenny_Elkington
Adobe Employee
Adobe Employee
January 13, 2016

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

January 14, 2016

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
Adobe Employee
Adobe Employee
January 14, 2016

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.